Om
1.0.0
A universal framework for multimedia simulation
|
A class that represents the range of a series of tokens which should be later interpreted as an expression. More...
#include <omScriptingMirExpressions.h>
Public Member Functions | |
ExpressionRange (Index newStartIndex, Size newNumTokens) | |
Create a new expression range object with the specified tokens start index and number of tokens. More... | |
Index | getStartIndex () const |
Return the index of this expression range's start in the master module token list. More... | |
Size | getTokenCount () const |
Return the number of tokens in this expression range in the master module token list. More... | |
Public Member Functions inherited from om::scripting::mir::lang::Expression | |
Type | getExpressionType () const |
Return the type of this expression. More... | |
Public Member Functions inherited from om::scripting::mir::lang::ASTNode | |
ASTNode () | |
Create a new AST node with no node position specified. More... | |
ASTNode (const Position &newPosition) | |
Create a new AST node which corresponds to a token starting at the specified source code position. More... | |
virtual | ~ASTNode () |
Destroy this AST node object. More... | |
const Position & | getPosition () const |
Return an object representing the position of this AST node in the source code. More... | |
void | setPosition (const Position &newPosition) |
Set the position of this AST node in the source code. More... | |
Static Public Member Functions | |
static Shared< ExpressionRange > | construct (Index newStartIndex, Size newNumTokens) |
Construct a smart-pointer-wrapped instance of this class using the constructor with the given arguments. More... | |
Additional Inherited Members | |
Public Types inherited from om::scripting::mir::lang::Expression | |
enum | Type { LITERAL, UNARY, BINARY, NEW_ARRAY, NEW_OBJECT, CAST, FUNCTION_CALL, ARRAY_ACCESS, ISA, REFERENCE, VARIABLE_DECLARATION, RANGE } |
An enum that specifies the different kinds of visiblity for member declarations. More... | |
Protected Member Functions inherited from om::scripting::mir::lang::Expression | |
Expression (Type newType) | |
Create a new expression with the specified expression type enum value. More... | |
A class that represents the range of a series of tokens which should be later interpreted as an expression.
|
inline |
Create a new expression range object with the specified tokens start index and number of tokens.
|
inline |
Return the index of this expression range's start in the master module token list.
|
inline |
Return the number of tokens in this expression range in the master module token list.
|
inlinestatic |
Construct a smart-pointer-wrapped instance of this class using the constructor with the given arguments.