new TOp(op, postfix, prefix, arity, commutative, associative, negated)
Unary/binary operation token.
Parameters:
Name | Type | Description |
---|---|---|
op |
string | Name of the operation. |
postfix |
boolean | |
prefix |
boolean | |
arity |
number | The number of parameters the operation takes. |
commutative |
boolean | |
associative |
boolean | |
negated |
negated |
Properties:
Name | Type | Description |
---|---|---|
name |
string | |
vars |
number | Arity of the operation. |
postfix |
boolean | |
prefix |
boolean | |
commutative |
boolean | |
associative |
boolean | |
type |
string | "op" |