MysoreScript
|
A new
expression, which constructs a new instance of a class.
More...
#include <ast.hh>
Additional Inherited Members | |
Public Member Functions inherited from AST::Expression | |
virtual bool | isConstantExpression () |
Returns true if the expression is constant and therefore doesn't need interpreting every time. More... | |
Obj | evaluate (Interpreter::Context &c) |
Evaluate the expression, caching the result if it's a constant expression. More... | |
void | interpret (Interpreter::Context &c) override final |
Interpret this expression as if it were a statement. More... | |
void | compile (Compiler::Context &c) override final |
Compile this expression as if it were a statement. More... | |
Protected Attributes inherited from AST::Expression | |
Interpreter::Value | cache |
Cached result for constant expression. More... | |
A new
expression, which constructs a new instance of a class.