aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/LuaSL/LuaSL_lemon_yaccer.y
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/LuaSL/LuaSL_lemon_yaccer.y12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/LuaSL/LuaSL_lemon_yaccer.y b/src/LuaSL/LuaSL_lemon_yaccer.y
index 08fdccc..5ddf45a 100644
--- a/src/LuaSL/LuaSL_lemon_yaccer.y
+++ b/src/LuaSL/LuaSL_lemon_yaccer.y
@@ -229,20 +229,20 @@ expr(A) ::= LSL_STRING(B). { B->basicType = OT_string; A = B; }
229 229
230%parse_failure 230%parse_failure
231{ 231{
232 compiler->compiler->bugCount++; 232 finishMessage(compiler->compiler, addMessage(&(compiler->compiler->messages), sizeof(compileMessage),
233 PE("Giving up. Parser is hopelessly lost!"); 233 "Giving up. Parser is hopelessly lost!"),
234 1, -1, -1);
234} 235}
235 236
236%stack_overflow 237%stack_overflow
237{ 238{
238 compiler->compiler->bugCount++; 239 finishMessage(compiler->compiler, addMessage(&(compiler->compiler->messages), sizeof(compileMessage),
239 PE("Giving up. Parser stack overflow @ line %d, column %d!", yypMinor->yy0->line, yypMinor->yy0->column); // Gotta love consistancy, if it ever happens. 240 "Giving up. Parser stack overflow"), // Gotta love consistancy, if it ever happens.
241 1, yypMinor->yy0->column, yypMinor->yy0->line);
240} 242}
241 243
242%syntax_error 244%syntax_error
243{ 245{
244// compiler->compiler->bugCount++;
245// PE("Syntax error @ line %d, column %d!", yyminor.yy0->line, yyminor.yy0->column);
246 finishMessage(compiler->compiler, addMessage(&(compiler->compiler->messages), sizeof(compileMessage), 246 finishMessage(compiler->compiler, addMessage(&(compiler->compiler->messages), sizeof(compileMessage),
247 "Syntax error."), 247 "Syntax error."),
248 1, yyminor.yy0->column, yyminor.yy0->line); 248 1, yyminor.yy0->column, yyminor.yy0->line);