Jump to navigation

Class: TOp

Numbas.jme.types.TOp

new TOp(op, postfix, prefix, arity, commutative, associative)

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
Properties:
Name Type Description
name String
vars Number

Arity of the operation

postfix Boolean
prefix Boolean
commutative Boolean
associative Boolean
type String

"op"

Source: