28 #ifndef WINTERMUTE_BASE_PARSER_H 29 #define WINTERMUTE_BASE_PARSER_H 32 #define TOKEN_DEF_START \ 36 #define TOKEN_DEF(name) \ 38 #define TOKEN_DEF_END \ 41 #define TOKEN_TABLE_START(name) \ 42 static const BaseParser::TokenDesc name [] = \ 44 #define TOKEN_TABLE(name) \ 45 { TOKEN_ ## name, #name }, 46 #define TOKEN_TABLE_END \ 50 #define PARSERR_GENERIC -3 51 #define PARSERR_EOF -2 52 #define PARSERR_TOKENNOTFOUND -1 54 #include "engines/wintermute/coll_templ.h" 66 int32 scanStr(
const char *in,
const char *format, ...);
67 int32 getCommand(
char **buf,
const TokenDesc *tokens,
char **params);
71 char *getLastOffender();
72 void skipToken(
char **buf,
char *tok,
char *msg =
nullptr);
73 int32 getTokenInt(
char **buf);
74 float getTokenFloat(
char **buf);
76 char *getAssignmentText(
char **buf);
77 char *getSubText(
char **buf,
char open,
char close);
78 void skipCharacters(
char **buf,
const char *toSkip);
79 int32 getObject(
char **buf,
const TokenDesc *tokens,
char **name,
char **data);
80 int32 _parserLine = 0;
81 char _lastOffender[255];
Definition: base_parser.h:58
Definition: base_parser.h:60
Definition: achievements_tables.h:27