Torque2D Reference
|
Classes | |
struct | CompilerIdentTable |
struct | CompilerStringTable |
struct | CompilerFloatTable |
struct | ConsoleParser |
List of parsers for the compiler. More... | |
Typedefs | |
typedef const char *(* | fnGetCurrentFile )() |
Function for GetCurrentFile from the lexer. More... | |
typedef S32(* | fnGetCurrentLine )() |
Function for GetCurrentLine from the lexer. More... | |
typedef S32(* | fnParse )() |
Function for Parse from the lexer. More... | |
typedef void(* | fnRestart )(FILE *input_file) |
Function for Restart from the lexer. More... | |
typedef void(* | fnSetScanBuffer )(const char *sb, const char *fn) |
Function for SetScanBuffer from the lexer. More... | |
Variables | |
CompilerStringTable * | gCurrentStringTable |
CompilerStringTable | gGlobalStringTable |
CompilerStringTable | gFunctionStringTable |
CompilerFloatTable * | gCurrentFloatTable |
CompilerFloatTable | gGlobalFloatTable |
CompilerFloatTable | gFunctionFloatTable |
DataChunker | gConsoleAllocator |
CompilerIdentTable | gIdentTable |
CodeBlock * | gCurBreakBlock |
U32(* | STEtoU32 )(StringTableEntry ste, U32 ip) = evalSTEtoU32 |
bool | gSyntaxError = false |
typedef const char*(* fnGetCurrentFile)() |
Function for GetCurrentFile from the lexer.
typedef S32(* fnGetCurrentLine)() |
Function for GetCurrentLine from the lexer.
typedef S32(* fnParse)() |
Function for Parse from the lexer.
typedef void(* fnRestart)(FILE *input_file) |
Function for Restart from the lexer.
typedef void(* fnSetScanBuffer)(const char *sb, const char *fn) |
Function for SetScanBuffer from the lexer.
enum CompiledInstructions |
The opcodes for the TorqueScript VM.
bool addConsoleParser | ( | const char * | ext, |
fnGetCurrentFile | gcf, | ||
fnGetCurrentLine | gcl, | ||
fnParse | p, | ||
fnRestart | r, | ||
fnSetScanBuffer | ssb, | ||
bool | def = false |
||
) |
Add a console parser to the list.
ext | Filename extension |
gcf | GetCurrentFile function |
gcl | GetCurrentLine function |
p | Parse function |
r | Restart function |
ssb | SetScanBuffer function |
def | true if this is the default parser (Note: set this only on the .cs parser!) |
U32 compileBlock | ( | StmtNode * | block, |
U32 * | codeStream, | ||
U32 | ip, | ||
U32 | continuePoint, | ||
U32 | breakPoint | ||
) |
U32 compileSTEtoU32 | ( | StringTableEntry | ste, |
U32 | ip | ||
) |
void * consoleAlloc | ( | U32 | size | ) |
void consoleAllocReset | ( | ) |
F64 consoleStringToNumber | ( | const char * | str, |
StringTableEntry | file, | ||
U32 | line | ||
) |
U32 evalSTEtoU32 | ( | StringTableEntry | ste, |
U32 | |||
) |
void freeConsoleParserList | ( | void | ) |
Free the console parser list.
CodeBlock * getBreakCodeBlock | ( | ) |
CompilerFloatTable * getCurrentFloatTable | ( | ) |
CompilerStringTable * getCurrentStringTable | ( | ) |
CompilerFloatTable & getFunctionFloatTable | ( | ) |
CompilerStringTable & getFunctionStringTable | ( | ) |
CompilerFloatTable & getGlobalFloatTable | ( | ) |
CompilerStringTable & getGlobalStringTable | ( | ) |
CompilerIdentTable & getIdentTable | ( | ) |
ConsoleParser * getParserForFile | ( | const char * | filename | ) |
Get the parser for a particular file based on its extension.
filename | Filename of file to obtain parser for |
U32 precompileBlock | ( | StmtNode * | block, |
U32 | loopCount | ||
) |
void precompileIdent | ( | StringTableEntry | ident | ) |
void resetTables | ( | ) |
Helper function to reset the float, string, and ident tables to a base starting state.
void setBreakCodeBlock | ( | CodeBlock * | cb | ) |
void setCurrentFloatTable | ( | CompilerFloatTable * | cst | ) |
void setCurrentStringTable | ( | CompilerStringTable * | cst | ) |
|
inline |
DataChunker gConsoleAllocator |
CodeBlock* gCurBreakBlock |
CompilerFloatTable* gCurrentFloatTable |
CompilerStringTable* gCurrentStringTable |
CompilerFloatTable gFunctionFloatTable |
CompilerStringTable gFunctionStringTable |
CompilerFloatTable gGlobalFloatTable |
CompilerStringTable gGlobalStringTable |
CompilerIdentTable gIdentTable |
bool gSyntaxError = false |
U32(* STEtoU32)(StringTableEntry ste, U32 ip) = evalSTEtoU32 |