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

toyparse_internal.h File Reference

Internal routines for Toy Parser. More...

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

Include dependency graph for toyparse_internal.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.

Functions

DECLSPEC TokenType *SDLCALL TokensToType (const char **tokens, const char **table[])
 Converts a list of string-tokens to an array of types.

DECLSPEC int SDLCALL FindInList (const char *str, const char *list[])
 Finds specified string in a table of strings.

DECLSPEC int SDLCALL CompareType (const char *str, const char *typestr)
 Compares a word with a syntax-string to see if it matches the specified syntax.

DECLSPEC char **SDLCALL Explode (const char *str)
 Converts a string into a list of words - array of pointers to strings ending in NULL.

DECLSPEC void SDLCALL FreeStrList (char **str)
 Frees a list of words.


Detailed Description

Definition in file toyparse_internal.h.


Function Documentation

DECLSPEC int SDLCALL CompareType const char *  str,
const char *  typestr
 

Returns 0 on syntax match, -1 on failure.

Definition at line 234 of file toyparse.c.

Referenced by FindInList().

DECLSPEC char** SDLCALL Explode const char *  strIn  ) 
 

Returns a NULL-terminated array of string tokens on success, NULL on failure.

Definition at line 305 of file toyparse.c.

References AllocateArray().

Referenced by LineToTypes().

Here is the call graph for this function:

DECLSPEC int SDLCALL FindInList const char *  str,
const char *  list[]
 

Returns the array index on match, -1 on failure.

Definition at line 207 of file toyparse.c.

References CompareType().

Referenced by DetermineSubType(), and DetermineType().

Here is the call graph for this function:

DECLSPEC void SDLCALL FreeStrList char **  strList  ) 
 

Returns no values.

Definition at line 391 of file toyparse.c.

DECLSPEC TokenType* SDLCALL TokensToType const char **  tokens,
const char **  table[]
 

Returns a tokentype array on success, NULL on failure.

Definition at line 140 of file toyparse.c.

References DetermineSubType(), DetermineType(), TokenType::subtype, TokenType::token, and TokenType::type.

Referenced by LineToTypes().

Here is the call graph for this function:


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