Om  1.0.0
A universal framework for multimedia simulation
Public Member Functions | List of all members
om::scripting::mir::lang::ASTNode Class Reference

A class that represents the base class for a node within a Mir abstract syntax tree. More...

#include <omScriptingMirASTNode.h>

Inheritance diagram for om::scripting::mir::lang::ASTNode:
om::scripting::mir::lang::Declaration om::scripting::mir::lang::Expression om::scripting::mir::lang::Field om::scripting::mir::lang::FunctionBody om::scripting::mir::lang::Identifier om::scripting::mir::lang::Import om::scripting::mir::lang::Literal om::scripting::mir::lang::Reference om::scripting::mir::lang::Statement om::scripting::mir::lang::TemplateDeclaration om::scripting::mir::lang::TemplateInstantiation om::scripting::mir::lang::Type

Public Member Functions

 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 PositiongetPosition () 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...
 

Detailed Description

A class that represents the base class for a node within a Mir abstract syntax tree.

Constructor & Destructor Documentation

om::scripting::mir::lang::ASTNode::ASTNode ( )
inline

Create a new AST node with no node position specified.

om::scripting::mir::lang::ASTNode::ASTNode ( const Position newPosition)
inline

Create a new AST node which corresponds to a token starting at the specified source code position.

virtual om::scripting::mir::lang::ASTNode::~ASTNode ( )
inlinevirtual

Destroy this AST node object.

Member Function Documentation

const Position& om::scripting::mir::lang::ASTNode::getPosition ( ) const
inline

Return an object representing the position of this AST node in the source code.

void om::scripting::mir::lang::ASTNode::setPosition ( const Position newPosition)
inline

Set the position of this AST node in the source code.


The documentation for this class was generated from the following file: