From 10228595e8c234db03bc860cbb93ae7232c6ccca Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Thu, 14 Aug 2014 08:59:39 +1000 Subject: Use the new message saving stuff in the parser as well. --- src/LuaSL/LuaSL_lemon_yaccer.y | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/LuaSL/LuaSL_lemon_yaccer.y') diff --git a/src/LuaSL/LuaSL_lemon_yaccer.y b/src/LuaSL/LuaSL_lemon_yaccer.y index 2a23e84..08fdccc 100644 --- a/src/LuaSL/LuaSL_lemon_yaccer.y +++ b/src/LuaSL/LuaSL_lemon_yaccer.y @@ -241,8 +241,11 @@ expr(A) ::= LSL_STRING(B). { B->basicType = OT_string; A = B; } %syntax_error { - compiler->compiler->bugCount++; - PE("Syntax error @ line %d, column %d!", yyminor.yy0->line, yyminor.yy0->column); +// compiler->compiler->bugCount++; +// PE("Syntax error @ line %d, column %d!", yyminor.yy0->line, yyminor.yy0->column); + finishMessage(compiler->compiler, addMessage(&(compiler->compiler->messages), sizeof(compileMessage), + "Syntax error."), + 1, yyminor.yy0->column, yyminor.yy0->line); } -- cgit v1.1