aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/LuaSL/LuaSL_lemon_yaccer.y
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-05-05 15:08:55 +1000
committerDavid Walter Seikel2014-05-05 15:08:55 +1000
commit334ba10e01c98b8d0ad2901b9ceafa45071050b9 (patch)
tree3fe60c140f14336ecd314b07d4a528bc7289ba78 /src/LuaSL/LuaSL_lemon_yaccer.y
parentPrepare for using GuiLua from extantz, but not going through with it just yet... (diff)
downloadSledjHamr-334ba10e01c98b8d0ad2901b9ceafa45071050b9.zip
SledjHamr-334ba10e01c98b8d0ad2901b9ceafa45071050b9.tar.gz
SledjHamr-334ba10e01c98b8d0ad2901b9ceafa45071050b9.tar.bz2
SledjHamr-334ba10e01c98b8d0ad2901b9ceafa45071050b9.tar.xz
Make logDom a stand alone, plus related fix ups and some clean ups.
Diffstat (limited to 'src/LuaSL/LuaSL_lemon_yaccer.y')
-rw-r--r--src/LuaSL/LuaSL_lemon_yaccer.y8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/LuaSL/LuaSL_lemon_yaccer.y b/src/LuaSL/LuaSL_lemon_yaccer.y
index 182789f..72c4479 100644
--- a/src/LuaSL/LuaSL_lemon_yaccer.y
+++ b/src/LuaSL/LuaSL_lemon_yaccer.y
@@ -222,31 +222,23 @@ expr(A) ::= LSL_STRING(B). { B->basicType = OT_string; A = B; }
222 222
223%parse_accept 223%parse_accept
224{ 224{
225// gameGlobals *ourGlobals = compiler->game;
226
227// PI("Parsing complete."); 225// PI("Parsing complete.");
228} 226}
229 227
230%parse_failure 228%parse_failure
231{ 229{
232 gameGlobals *ourGlobals = compiler->game;
233
234 compiler->script.bugCount++; 230 compiler->script.bugCount++;
235 PE("Giving up. Parser is hopelessly lost!"); 231 PE("Giving up. Parser is hopelessly lost!");
236} 232}
237 233
238%stack_overflow 234%stack_overflow
239{ 235{
240 gameGlobals *ourGlobals = compiler->game;
241
242 compiler->script.bugCount++; 236 compiler->script.bugCount++;
243 PE("Giving up. Parser stack overflow @ line %d, column %d!", yypMinor->yy0->line, yypMinor->yy0->column); // Gotta love consistancy, if it ever happens. 237 PE("Giving up. Parser stack overflow @ line %d, column %d!", yypMinor->yy0->line, yypMinor->yy0->column); // Gotta love consistancy, if it ever happens.
244} 238}
245 239
246%syntax_error 240%syntax_error
247{ 241{
248 gameGlobals *ourGlobals = compiler->game;
249
250 compiler->script.bugCount++; 242 compiler->script.bugCount++;
251 PE("Syntax error @ line %d, column %d!", yyminor.yy0->line, yyminor.yy0->column); 243 PE("Syntax error @ line %d, column %d!", yyminor.yy0->line, yyminor.yy0->column);
252} 244}