diff options
author | David Walter Seikel | 2014-08-14 14:11:58 +1000 |
---|---|---|
committer | David Walter Seikel | 2014-08-14 14:11:58 +1000 |
commit | ab6b1318f3dd335ef49aa46146c43a51037675b7 (patch) | |
tree | 1946581d4452a07bce1fb400d3b729af70597fda /src/LuaSL/LuaSL_lemon_yaccer.y | |
parent | Use the new message saving stuff in the parser as well. (diff) | |
download | SledjHamr-ab6b1318f3dd335ef49aa46146c43a51037675b7.zip SledjHamr-ab6b1318f3dd335ef49aa46146c43a51037675b7.tar.gz SledjHamr-ab6b1318f3dd335ef49aa46146c43a51037675b7.tar.bz2 SledjHamr-ab6b1318f3dd335ef49aa46146c43a51037675b7.tar.xz |
Clean up the compiler output. Threaded compiling is much faster when it's not outputting to the console.
Diffstat (limited to '')
-rw-r--r-- | src/LuaSL/LuaSL_lemon_yaccer.y | 12 |
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); |