diff options
Diffstat (limited to '')
-rw-r--r-- | LuaSL/src/LuaSL_yaccer.y | 7 |
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 | ||
50 | input : | 52 | input : |
@@ -84,8 +86,11 @@ expr : | |||
84 | ; | 86 | ; |
85 | 87 | ||
86 | statement : | 88 | statement : |
87 | expr LSL_STATEMENT { $$ = createStatement(LSL_EXPRESSION, $1); } | 89 | expr LSL_STATEMENT { $$ = createStatement(LSL_EXPRESSION, $1); YYVALID; } |
88 | ; | 90 | ; |
89 | 91 | ||
92 | script : | ||
93 | script LSL_STATEMENT statement | ||
94 | |||
90 | %% | 95 | %% |
91 | 96 | ||