aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/LuaSL/src/LuaSL_type_parser.h
blob: 76842db3ebeb072350fe01ca30b1a55077bac6b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*
 * TypeParser.h
 * Definition of the structure used internally by the parser and lexer
 * to exchange data.
 */
 
#ifndef __TYPE_PARSER_H__
#define __TYPE_PARSER_H__
 
#include "LuaSL_LSL_tree.h"
 
/**
 * @brief The structure used by flex and bison
 */
typedef union tagTypeParser
{
        SExpression			*expression;
        int				value;
	int				ival;
	float				fval;
	char				*sval;
//	class LLScriptType		*type;
//	class LLScriptConstant		*constant;
//	class LLScriptIdentifier	*identifier;
//	class LLScriptSimpleAssignable	*assignable;
//	class LLScriptGlobalVariable	*global;
//	class LLScriptEvent		*event;
//	class LLScriptEventHandler	*handler;
//	class LLScriptExpression	*expression;
//	class LLScriptStatement		*statement;
//	class LLScriptGlobalFunctions	*global_funcs;
//	class LLScriptFunctionDec	*global_decl;
//	class LLScriptState		*state;
//	class LLScritpGlobalStorage	*global_store;
//	class LLScriptScript		*script;
}STypeParser;
 
// define the type for flex and bison
#define YYSTYPE STypeParser

int yyerror(const char *msg);

 
#endif // __TYPE_PARSER_H__