Om
1.0.0
A universal framework for multimedia simulation
|
A class that represents a literal numerical or string value within the source code. More...
#include <omScriptingMirLiterals.h>
Public Types | |
enum | Type { INTEGER_LITERAL, FLOAT_LITERAL, STRING_LITERAL, BOOLEAN_LITERAL, NULL_LITERAL } |
An enum that specifies the different kinds of visiblity for member declarations. More... | |
Public Member Functions | |
Type | getType () const |
Convert this visibility type to an enum value. 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... | |
Protected Member Functions | |
Literal (Type newType) | |
Create a new literal with the specified literal type enum value. More... | |
A class that represents a literal numerical or string value within the source code.
An enum that specifies the different kinds of visiblity for member declarations.
Enumerator | |
---|---|
INTEGER_LITERAL |
The literal has a concrete type of IntegerLiteral. |
FLOAT_LITERAL |
The literal has a concrete type of FloatLiteral. |
STRING_LITERAL |
The literal has a concrete type of StringLiteral. |
BOOLEAN_LITERAL |
The literal has a concrete type of BooleanLiteral. |
NULL_LITERAL |
The literal has a concrete type of NullLiteral. |
|
inlineprotected |
Create a new literal with the specified literal type enum value.
|
inline |
Convert this visibility type to an enum value.