diff options
author | David Walter Seikel | 2014-08-14 08:59:39 +1000 |
---|---|---|
committer | David Walter Seikel | 2014-08-14 08:59:39 +1000 |
commit | 10228595e8c234db03bc860cbb93ae7232c6ccca (patch) | |
tree | 08552adc64486526eecc62a7d5e78b790f3e25da /src/LuaSL/LuaSL_lemon_yaccer.y | |
parent | Optimise message sending. (diff) | |
download | SledjHamr-10228595e8c234db03bc860cbb93ae7232c6ccca.zip SledjHamr-10228595e8c234db03bc860cbb93ae7232c6ccca.tar.gz SledjHamr-10228595e8c234db03bc860cbb93ae7232c6ccca.tar.bz2 SledjHamr-10228595e8c234db03bc860cbb93ae7232c6ccca.tar.xz |
Use the new message saving stuff in the parser as well.
Diffstat (limited to 'src/LuaSL/LuaSL_lemon_yaccer.y')
-rw-r--r-- | src/LuaSL/LuaSL_lemon_yaccer.y | 7 |
1 files changed, 5 insertions, 2 deletions
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; } | |||
241 | 241 | ||
242 | %syntax_error | 242 | %syntax_error |
243 | { | 243 | { |
244 | compiler->compiler->bugCount++; | 244 | // compiler->compiler->bugCount++; |
245 | PE("Syntax error @ line %d, column %d!", yyminor.yy0->line, yyminor.yy0->column); | 245 | // PE("Syntax error @ line %d, column %d!", yyminor.yy0->line, yyminor.yy0->column); |
246 | finishMessage(compiler->compiler, addMessage(&(compiler->compiler->messages), sizeof(compileMessage), | ||
247 | "Syntax error."), | ||
248 | 1, yyminor.yy0->column, yyminor.yy0->line); | ||
246 | } | 249 | } |
247 | 250 | ||
248 | 251 | ||