diff options
Diffstat (limited to 'LuaSL/src/LuaSL_type_parser.h')
-rw-r--r-- | LuaSL/src/LuaSL_type_parser.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/LuaSL/src/LuaSL_type_parser.h b/LuaSL/src/LuaSL_type_parser.h new file mode 100644 index 0000000..66c3f5d --- /dev/null +++ b/LuaSL/src/LuaSL_type_parser.h | |||
@@ -0,0 +1,29 @@ | |||
1 | /* | ||
2 | * TypeParser.h | ||
3 | * Definition of the structure used internally by the parser and lexer | ||
4 | * to exchange data. | ||
5 | */ | ||
6 | |||
7 | #ifndef __TYPE_PARSER_H__ | ||
8 | #define __TYPE_PARSER_H__ | ||
9 | |||
10 | #include "LuaSL_LSL_tree.h" | ||
11 | |||
12 | /** | ||
13 | * @brief The structure used by flex and bison | ||
14 | */ | ||
15 | typedef union tagTypeParser | ||
16 | { | ||
17 | SExpression *expression; | ||
18 | int value; | ||
19 | }STypeParser; | ||
20 | |||
21 | // define the type for flex and bison | ||
22 | #define YYSTYPE STypeParser | ||
23 | |||
24 | int yyerror(const char *msg); | ||
25 | |||
26 | |||
27 | #endif // __TYPE_PARSER_H__ | ||
28 | |||
29 | |||