Class: LEMInterpreterValue

LEMInterpreterValue

LEMInterpreterValue represents a value produced during the interpretation of an abstract syntax tree. It essentially just holds the type of the value along with the actual value

Constructor

new LEMInterpreterValue(type, val)

Constructs an LEMInterpreterValue of the specified type and value
Parameters:
Name Type Description
type * The type of the LEMInterpreterValue. This must be one of the constants defined in LEMInterpreterValue such as LEMInterpreterValue.REGEX
val * The value represented by this LEMInterpreterValue
Source:

Members

(static, constant) BOOLEAN

Source:

(static, constant) REGEX

Source:

(static, constant) STRING

Source:

Methods

getType() → {*}

Gets the type of this LEMInterpreterValue
Source:
Returns:
The type. This value will be one of the constants defined in LEMInterpreterValue such as LEMInterpreterValue.REGEX
Type
*

getVal() → {*}

Gets the value of this LEMInterpreterValue
Source:
Returns:
the value
Type
*