aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--LuaSL/src/LuaSL_yaccer.y7
1 files changed, 6 insertions, 1 deletions
diff --git a/LuaSL/src/LuaSL_yaccer.y b/LuaSL/src/LuaSL_yaccer.y
index b9721f8..35447d1 100644
--- a/LuaSL/src/LuaSL_yaccer.y
+++ b/LuaSL/src/LuaSL_yaccer.y
@@ -45,6 +45,8 @@
45%type <statementValue> statement 45%type <statementValue> statement
46%nonassoc LSL_STATEMENT 46%nonassoc LSL_STATEMENT
47 47
48%type <scriptValue> script
49
48%% 50%%
49 51
50input : 52input :
@@ -84,8 +86,11 @@ expr :
84; 86;
85 87
86statement : 88statement :
87 expr LSL_STATEMENT { $$ = createStatement(LSL_EXPRESSION, $1); } 89 expr LSL_STATEMENT { $$ = createStatement(LSL_EXPRESSION, $1); YYVALID; }
88; 90;
89 91
92script :
93 script LSL_STATEMENT statement
94
90%% 95%%
91 96