parse.h File Reference

Shared parsing functions. More...

#include "ufotypes.h"
Include dependency graph for parse.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

const char * Com_Parse (const char **data_p)
void Com_UnParseLastToken (void)
 Put back the last token into the parser The next call of Com_Parse will return the same token again.
qboolean Com_ParsedTokenIsQuoted (void)
 Check if the last read token is quoted.
void Com_EnableFunctionScriptToken (qboolean enable)
 Enable parsing of token '(', ')' and ','.

Detailed Description

Shared parsing functions.

Definition in file parse.h.


Function Documentation

void Com_EnableFunctionScriptToken ( qboolean  enable  ) 

Enable parsing of token '(', ')' and ','.

Parameters:
enable If true, enable parsing of extra tokens
See also:
Com_Parse

Definition at line 63 of file parse.c.

References functionScriptTokenEnabled.

Referenced by testParserWithFunctionScriptToken(), UFO_InitSuiteParser(), UI_ParseEventProperty(), and UI_ParseFunction().

const char* Com_Parse ( const char **  data_p  ) 
qboolean Com_ParsedTokenIsQuoted ( void   ) 

Check if the last read token is quoted.

Returns:
True if the token is quoted
See also:
Com_Parse

Definition at line 53 of file parse.c.

References isQuotedToken.

Referenced by testParser(), testParserWithEntity(), testParserWithFunctionScriptToken(), testParserWithUnParse(), UI_ParseNode(), UI_ParseProperty(), UI_ParseValueExpression(), and UI_ParseWindow().

void Com_UnParseLastToken ( void   ) 

Put back the last token into the parser The next call of Com_Parse will return the same token again.

Note:
Only allow to use it one time
With it, we can't read to file at the same time

Definition at line 43 of file parse.c.

References isUnparsedToken, and qtrue.

Referenced by testParserWithUnParse(), UI_ParseCallAction(), UI_ParseComponent(), UI_ParseExpression(), and UI_ParseSetAction().


Generated by  doxygen 1.6.2