Jump to navigation

Class: TOp

Numbas.jme.types.TOp

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

The name of the operation.

vars number

Arity of the operation.

postfix boolean

Is this operator applied postfix?

prefix boolean

Is this operator applied prefix?

commutative boolean

Is this operation commutative?

associative boolean

Is this operation associative?

type string

"op"

Source: