Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

toyparse.h File Reference

A simple text tokeniser/interpreter borrowed from my school project. More...

#include <SDL/begin_code.h>
#include <SDL/close_code.h>

Include dependency graph for toyparse.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Classes

struct  TokenType
 A structure defining the type and subtype of a token. More...


Defines

#define TYPE_ENDOPEN   0xffff
 Denotes an open-ended syntax check.

#define TYPE_ENDCLOSE   0xfffe
 Denotes a strict syntax-check, last argument MUST be the last.


Typedefs

typedef TokenType TokenType
 A structure defining the type and subtype of a token.


Functions

DECLSPEC void SDLCALL FreeType (TokenType *types)
 Frees an array of token-types and everything it contains.

DECLSPEC TokenType *SDLCALL LineToTypes (const char *str, const char **table[])
 Converts a line of text to an array of token-types.

DECLSPEC int SDLCALL DetermineType (const char *str, const char **table[])
 Determines the root type of a token.

DECLSPEC int SDLCALL DetermineSubType (int type, const char *str, const char **args[])
 Determines the sub-type from a known type.

DECLSPEC int SDLCALL CheckLineSyntax (TokenType *tarray,...)
 Define PRINT_COMMENTS to print comments at runtime. Used for debugging. A generalized function to check the syntax of an array of token types.


Detailed Description

Definition in file toyparse.h.


Generated on Sat Oct 11 13:19:33 2003 for Spritelib by doxygen 1.3.4