torque Torque Game Engine Documentation
TGE Version 1.5.2

StmtNode Struct Reference

#include <ast.h>

Inheritance diagram for StmtNode:

Inheritance graph
[legend]

Detailed Description

Representation of a node for the scripting language parser.

When the scripting language is evaluated, it is turned from a string representation, into a parse tree, thence into byte code, which is ultimately interpreted by the VM.

This is the base class for the nodes in the parse tree. There are a great many subclasses, each representing a different language construct.


Public Member Functions

 StmtNode ()
next Accessors
void append (StmtNode *next)
StmtNodegetNext ()
Breaking
void addBreakCount ()
void addBreakLine (U32 ip)
Compilation
virtual U32 precompileStmt (U32 loopCount)=0
virtual U32 compileStmt (U32 *codeStream, U32 ip, U32 continuePoint, U32 breakPoint)=0
virtual void setPackage (StringTableEntry packageName)

Data Fields

StmtNodenext
 Next entry in parse tree.
Debug Info
StringTableEntry dbgFileName
 Name of file this node is associated with.
S32 dbgLineNumber
 Line number this node is associated with.


Constructor & Destructor Documentation

StmtNode::StmtNode (  ) 


Member Function Documentation

void StmtNode::append ( StmtNode next  ) 

StmtNode* StmtNode::getNext (  )  [inline]

void StmtNode::addBreakCount (  ) 

void StmtNode::addBreakLine ( U32  ip  ) 

virtual U32 StmtNode::precompileStmt ( U32  loopCount  )  [pure virtual]

virtual U32 StmtNode::compileStmt ( U32 codeStream,
U32  ip,
U32  continuePoint,
U32  breakPoint 
) [pure virtual]

virtual void StmtNode::setPackage ( StringTableEntry  packageName  )  [virtual]

Reimplemented in FunctionDeclStmtNode.


Field Documentation

Next entry in parse tree.

Name of file this node is associated with.

Line number this node is associated with.




All Rights Reserved GarageGames.com, Inc. 1999-2005
Auto-magically Generated with Doxygen