diff options
Diffstat (limited to '')
-rw-r--r-- | src/LuaSL/LuaSL_lemon_yaccer.y | 8 |
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 | } |