Skip to content

Operator nodes

Adam Dernis edited this page May 24, 2020 · 3 revisions

Unary

A unary operator is an operator with only child. Examples: '-' in -x, sin(x), or parenthesis.

Binary

A binary operator is an operator with two (2) children. Examples: '^' in x^2

Nary

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.

Clone this wiki locally