aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/LuaSL/src/LuaSL_LSL_tree.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--LuaSL/src/LuaSL_LSL_tree.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/LuaSL/src/LuaSL_LSL_tree.h b/LuaSL/src/LuaSL_LSL_tree.h
index e01273b..597db54 100644
--- a/LuaSL/src/LuaSL_LSL_tree.h
+++ b/LuaSL/src/LuaSL_LSL_tree.h
@@ -3,7 +3,7 @@
3#define __EXPRESSION_H__ 3#define __EXPRESSION_H__
4 4
5//#define LUASL_USE_ENUM 5//#define LUASL_USE_ENUM
6//#define LUASL_DEBUG 6#define LUASL_DEBUG
7 7
8#ifndef LUASL_USE_ENUM 8#ifndef LUASL_USE_ENUM
9#include "LuaSL_yaccer.tab.h" 9#include "LuaSL_yaccer.tab.h"
@@ -134,7 +134,7 @@ typedef int LSL_Type;
134typedef struct 134typedef struct
135{ 135{
136 LSL_Type type; 136 LSL_Type type;
137 struct LSL_AST *expressions; 137 struct LSL_AST *expression;
138} LSL_Statement; 138} LSL_Statement;
139 139
140typedef struct 140typedef struct
@@ -258,6 +258,9 @@ typedef struct
258LSL_AST *addExpression(LSL_AST *exp); 258LSL_AST *addExpression(LSL_AST *exp);
259LSL_AST *addInteger(int value); 259LSL_AST *addInteger(int value);
260LSL_AST *addOperation(LSL_Operation type, LSL_AST *left, LSL_AST *right); 260LSL_AST *addOperation(LSL_Operation type, LSL_AST *left, LSL_AST *right);
261LSL_AST *addParenthesis(LSL_AST *expr);
262LSL_Statement *createStatement(LSL_Type type, LSL_AST *expr);
263LSL_AST *addStatement(LSL_Statement *statement, LSL_AST *left);
261 264
262int yyerror(const char *msg); 265int yyerror(const char *msg);
263int yyparse(void *param); 266int yyparse(void *param);