torque Torque Game Engine Documentation
TGE Version 1.5.2

engine/console/consoleParser.h File Reference

#include <stdio.h>

Namespaces

namespace  Compiler

Data Structures

struct  Compiler::ConsoleParser
 List of parsers for the compiler. More...

Defines

#define CON_DECLARE_PARSER(prefix)
 Declare a parser's function prototypes.
#define CON_ADD_PARSER(prefix, ext, def)
 Helper macro to add console parsers.

Typedefs

typedef const char *(*) Compiler::fnGetCurrentFile ()
 Function for GetCurrentFile from the lexer.
typedef S32(*) Compiler::fnGetCurrentLine ()
 Function for GetCurrentLine from the lexer.
typedef S32(*) Compiler::fnParse ()
 Function for Parse from the lexer.
typedef void(*) Compiler::fnRestart (FILE *input_file)
 Function for Restart from the lexer.
typedef void(*) Compiler::fnSetScanBuffer (const char *sb, const char *fn)
 Function for SetScanBuffer from the lexer.

Functions

void Compiler::freeConsoleParserList (void)
 Free the console parser list.
bool Compiler::addConsoleParser (char *ext, fnGetCurrentFile gcf, fnGetCurrentLine gcl, fnParse p, fnRestart r, fnSetScanBuffer ssb, bool def=false)
 Add a console parser to the list.
ConsoleParser * Compiler::getParserForFile (const char *filename)
 Get the parser for a particular file based on its extension.


Define Documentation

#define CON_DECLARE_PARSER ( prefix   ) 

Value:

const char * prefix##GetCurrentFile(); \
    S32 prefix##GetCurrentLine(); \
    void prefix##SetScanBuffer(const char *sb, const char *fn); \
    S32 prefix##parse(); \
    void prefix##restart(FILE *input_file)
Declare a parser's function prototypes.

#define CON_ADD_PARSER ( prefix,
ext,
def   ) 

Value:

Compiler::addConsoleParser(ext, prefix##GetCurrentFile, prefix##GetCurrentLine, prefix##parse, \
                          prefix##restart, prefix##SetScanBuffer, def)
Helper macro to add console parsers.




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