torque Torque Game Engine Documentation
TGE Version 1.5.2

engine/console/compiler.h File Reference

#include "platform/platform.h"
#include "console/ast.h"
#include "console/codeBlock.h"
#include "console/cmdgram.h"

Namespaces

namespace  Compiler

Data Structures

struct  Compiler::CompilerIdentTable
struct  Compiler::CompilerIdentTable::Entry
struct  Compiler::CompilerStringTable
struct  Compiler::CompilerStringTable::Entry
struct  Compiler::CompilerFloatTable
struct  Compiler::CompilerFloatTable::Entry

Enumerations

enum  Compiler::CompiledInstructions {
  Compiler::OP_FUNC_DECL,
  Compiler::OP_CREATE_OBJECT,
  Compiler::OP_ADD_OBJECT,
  Compiler::OP_END_OBJECT,
  Compiler::OP_JMPIFFNOT,
  Compiler::OP_JMPIFNOT,
  Compiler::OP_JMPIFF,
  Compiler::OP_JMPIF,
  Compiler::OP_JMPIFNOT_NP,
  Compiler::OP_JMPIF_NP,
  Compiler::OP_JMP,
  Compiler::OP_RETURN,
  Compiler::OP_CMPEQ,
  Compiler::OP_CMPGR,
  Compiler::OP_CMPGE,
  Compiler::OP_CMPLT,
  Compiler::OP_CMPLE,
  Compiler::OP_CMPNE,
  Compiler::OP_XOR,
  Compiler::OP_MOD,
  Compiler::OP_BITAND,
  Compiler::OP_BITOR,
  Compiler::OP_NOT,
  Compiler::OP_NOTF,
  Compiler::OP_ONESCOMPLEMENT,
  Compiler::OP_SHR,
  Compiler::OP_SHL,
  Compiler::OP_AND,
  Compiler::OP_OR,
  Compiler::OP_ADD,
  Compiler::OP_SUB,
  Compiler::OP_MUL,
  Compiler::OP_DIV,
  Compiler::OP_NEG,
  Compiler::OP_SETCURVAR,
  Compiler::OP_SETCURVAR_CREATE,
  Compiler::OP_SETCURVAR_ARRAY,
  Compiler::OP_SETCURVAR_ARRAY_CREATE,
  Compiler::OP_LOADVAR_UINT,
  Compiler::OP_LOADVAR_FLT,
  Compiler::OP_LOADVAR_STR,
  Compiler::OP_SAVEVAR_UINT,
  Compiler::OP_SAVEVAR_FLT,
  Compiler::OP_SAVEVAR_STR,
  Compiler::OP_SETCUROBJECT,
  Compiler::OP_SETCUROBJECT_NEW,
  Compiler::OP_SETCURFIELD,
  Compiler::OP_SETCURFIELD_ARRAY,
  Compiler::OP_LOADFIELD_UINT,
  Compiler::OP_LOADFIELD_FLT,
  Compiler::OP_LOADFIELD_STR,
  Compiler::OP_SAVEFIELD_UINT,
  Compiler::OP_SAVEFIELD_FLT,
  Compiler::OP_SAVEFIELD_STR,
  Compiler::OP_STR_TO_UINT,
  Compiler::OP_STR_TO_FLT,
  Compiler::OP_STR_TO_NONE,
  Compiler::OP_FLT_TO_UINT,
  Compiler::OP_FLT_TO_STR,
  Compiler::OP_FLT_TO_NONE,
  Compiler::OP_UINT_TO_FLT,
  Compiler::OP_UINT_TO_STR,
  Compiler::OP_UINT_TO_NONE,
  Compiler::OP_LOADIMMED_UINT,
  Compiler::OP_LOADIMMED_FLT,
  Compiler::OP_TAG_TO_STR,
  Compiler::OP_LOADIMMED_STR,
  Compiler::OP_LOADIMMED_IDENT,
  Compiler::OP_CALLFUNC_RESOLVE,
  Compiler::OP_CALLFUNC,
  Compiler::OP_ADVANCE_STR,
  Compiler::OP_ADVANCE_STR_APPENDCHAR,
  Compiler::OP_ADVANCE_STR_COMMA,
  Compiler::OP_ADVANCE_STR_NUL,
  Compiler::OP_REWIND_STR,
  Compiler::OP_TERMINATE_REWIND_STR,
  Compiler::OP_COMPARE_STR,
  Compiler::OP_PUSH,
  Compiler::OP_PUSH_FRAME,
  Compiler::OP_BREAK,
  Compiler::OP_INVALID
}
 The opcodes for the TorqueScript VM. More...

Functions

F64 Compiler::consoleStringToNumber (const char *str, StringTableEntry file=0, U32 line=0)
U32 Compiler::precompileBlock (StmtNode *block, U32 loopCount)
U32 Compiler::compileBlock (StmtNode *block, U32 *codeStream, U32 ip, U32 continuePoint, U32 breakPoint)
StringTableEntry Compiler::U32toSTE (U32 u)
U32 Compiler::evalSTEtoU32 (StringTableEntry ste, U32)
U32 Compiler::compileSTEtoU32 (StringTableEntry ste, U32 ip)
CompilerStringTable * Compiler::getCurrentStringTable ()
CompilerStringTable & Compiler::getGlobalStringTable ()
CompilerStringTable & Compiler::getFunctionStringTable ()
void Compiler::setCurrentStringTable (CompilerStringTable *cst)
CompilerFloatTable * Compiler::getCurrentFloatTable ()
CompilerFloatTable & Compiler::getGlobalFloatTable ()
CompilerFloatTable & Compiler::getFunctionFloatTable ()
void Compiler::setCurrentFloatTable (CompilerFloatTable *cst)
CompilerIdentTable & Compiler::getIdentTable ()
void Compiler::precompileIdent (StringTableEntry ident)
CodeBlockCompiler::getBreakCodeBlock ()
void Compiler::setBreakCodeBlock (CodeBlock *cb)
void Compiler::resetTables ()
 Helper function to reset the float, string, and ident tables to a base starting state.
voidCompiler::consoleAlloc (U32 size)
void Compiler::consoleAllocReset ()

Variables

U32(*) Compiler::STEtoU32 (StringTableEntry ste, U32 ip)
bool Compiler::gSyntaxError




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