StmtNode
Representation of a node for the scripting language parser.
Debug Info
Name of file this node is associated with.
Line number this node is associated with.
Breaking
addBreakLine(CodeStream & codeStream)
Compilation
compileStmt(CodeStream & codeStream, U32 ip)
setPackage(StringTableEntry packageName)
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