From ab6b1318f3dd335ef49aa46146c43a51037675b7 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Thu, 14 Aug 2014 14:11:58 +1000 Subject: Clean up the compiler output. Threaded compiling is much faster when it's not outputting to the console. --- src/LuaSL/LuaSL_lemon_yaccer.y | 12 ++++++------ 1 file changed, 6 insertions(+), 6 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 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; } %parse_failure { - compiler->compiler->bugCount++; - PE("Giving up. Parser is hopelessly lost!"); + finishMessage(compiler->compiler, addMessage(&(compiler->compiler->messages), sizeof(compileMessage), + "Giving up. Parser is hopelessly lost!"), + 1, -1, -1); } %stack_overflow { - compiler->compiler->bugCount++; - PE("Giving up. Parser stack overflow @ line %d, column %d!", yypMinor->yy0->line, yypMinor->yy0->column); // Gotta love consistancy, if it ever happens. + finishMessage(compiler->compiler, addMessage(&(compiler->compiler->messages), sizeof(compileMessage), + "Giving up. Parser stack overflow"), // Gotta love consistancy, if it ever happens. + 1, yypMinor->yy0->column, yypMinor->yy0->line); } %syntax_error { -// 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