Class: Expression

Hierarchy

  • Expression

Constructors

constructor

+ new Expression(str: string, lenient: boolean): Expression

Defined in render/expression.ts:20

Parameters:

Name Type Default
str string -
lenient boolean false

Returns: Expression

Properties

Private lenient

lenient: boolean

Defined in render/expression.ts:20


Private operands

operands: any[] = []

Defined in render/expression.ts:18


Private postfix

postfix: Token[]

Defined in render/expression.ts:19

Methods

evaluate

evaluate(ctx: Context): any

Defined in render/expression.ts:27

Parameters:

Name Type
ctx Context

Returns: any


value

value(ctx: Context): IterableIterator‹any›

Defined in render/expression.ts:40

Parameters:

Name Type
ctx Context

Returns: IterableIterator‹any›