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: