Expression

Stores a parsed expression that can be evaluated. This also provides an access point to the global singleton API.

Constructor

new L3D.Expression()

Create a new Expression with the given source and AST.

Properties

Is the expression valid?

Methods

static eval()

Evaluate the given string as an expression, using either a ExprContext or a symbol map as the local context.

static import()

Import the given symbol map to the global context.

static parse()

Create a new Expression by parsing the [source].

eval()

Evaluate the expression with the given context.

toString()

Get the string value of the expression.