StmtNode

Engine/source/console/ast.h

Representation of a node for the scripting language parser.

More...

Debug Info

Name of file this node is associated with.

Line number this node is associated with.

next Accessors

Breaking

Compilation

compileStmt(CodeStream & codeStream, U32 ip)

Public Attributes

Next entry in parse tree.

Public Functions

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.

Debug Info

StringTableEntry dbgFileName 

Name of file this node is associated with.

S32 dbgLineNumber 

Line number this node is associated with.

next Accessors

append(StmtNode * next)

getNext()

Breaking

addBreakLine(CodeStream & codeStream)

Compilation

compileStmt(CodeStream & codeStream, U32 ip)

Reimplemented by: BreakStmtNode, ContinueStmtNode, ExprNode, ReturnStmtNode, IfStmtNode, LoopStmtNode, IterStmtNode, TTagSetStmtNode, FunctionDeclStmtNode

setPackage(StringTableEntry packageName)

Reimplemented by: FunctionDeclStmtNode

Public Attributes

StmtNode * mNext 

Next entry in parse tree.

Public Functions

StmtNode()

~StmtNode()