aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/LuaSL/src/LuaSL_yaccer.y
diff options
context:
space:
mode:
authorDavid Walter Seikel2012-01-09 08:34:27 +1000
committerDavid Walter Seikel2012-01-09 08:34:27 +1000
commitdb4c67e1c048fef9af24bfcb9c41052982947efb (patch)
treee9e7213e2ed506b2bf65729e4286409d3b824c1c /LuaSL/src/LuaSL_yaccer.y
parentTurn btyacc debugging back on, it's fine now. (diff)
downloadSledjHamr-db4c67e1c048fef9af24bfcb9c41052982947efb.zip
SledjHamr-db4c67e1c048fef9af24bfcb9c41052982947efb.tar.gz
SledjHamr-db4c67e1c048fef9af24bfcb9c41052982947efb.tar.bz2
SledjHamr-db4c67e1c048fef9af24bfcb9c41052982947efb.tar.xz
Implement script, and add YYVALID for statement to help with recovering from errors.
Diffstat (limited to '')
-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