-
Notifications
You must be signed in to change notification settings - Fork 1
Operator nodes
Adam Dernis edited this page May 24, 2020
·
3 revisions
A unary operator is an operator with only child. Examples: '-'
in -x
, sin(x)
, or parenthesis.
A binary operator is an operator with two (2) children. Examples: '^'
in x^2
An nary operator is an operator with a dynamic amount of children. This is used to combine addition and multiplication for terms. So 2+2+2
can be handled as such, instead of as (2+2)+2
.