diff options
author | David Walter Seikel | 2014-08-14 06:37:29 +1000 |
---|---|---|
committer | David Walter Seikel | 2014-08-14 06:37:29 +1000 |
commit | ba57301e92831606a18289ec10c314edd756f311 (patch) | |
tree | bb07db3340db45afc5bf795518e288a991c6312d /src/LuaSL/LuaSL_lemon_yaccer.y | |
parent | Remove a warning in lemon. (diff) | |
download | SledjHamr-ba57301e92831606a18289ec10c314edd756f311.zip SledjHamr-ba57301e92831606a18289ec10c314edd756f311.tar.gz SledjHamr-ba57301e92831606a18289ec10c314edd756f311.tar.bz2 SledjHamr-ba57301e92831606a18289ec10c314edd756f311.tar.xz |
Considerable cleanup of the top level compiling code.
Diffstat (limited to 'src/LuaSL/LuaSL_lemon_yaccer.y')
-rw-r--r-- | src/LuaSL/LuaSL_lemon_yaccer.y | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/LuaSL/LuaSL_lemon_yaccer.y b/src/LuaSL/LuaSL_lemon_yaccer.y index f03837e..2a23e84 100644 --- a/src/LuaSL/LuaSL_lemon_yaccer.y +++ b/src/LuaSL/LuaSL_lemon_yaccer.y | |||
@@ -229,19 +229,19 @@ expr(A) ::= LSL_STRING(B). { B->basicType = OT_string; A = B; } | |||
229 | 229 | ||
230 | %parse_failure | 230 | %parse_failure |
231 | { | 231 | { |
232 | compiler->script.bugCount++; | 232 | compiler->compiler->bugCount++; |
233 | PE("Giving up. Parser is hopelessly lost!"); | 233 | PE("Giving up. Parser is hopelessly lost!"); |
234 | } | 234 | } |
235 | 235 | ||
236 | %stack_overflow | 236 | %stack_overflow |
237 | { | 237 | { |
238 | compiler->script.bugCount++; | 238 | compiler->compiler->bugCount++; |
239 | PE("Giving up. Parser stack overflow @ line %d, column %d!", yypMinor->yy0->line, yypMinor->yy0->column); // Gotta love consistancy, if it ever happens. | 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 | } | 240 | } |
241 | 241 | ||
242 | %syntax_error | 242 | %syntax_error |
243 | { | 243 | { |
244 | compiler->script.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 | } | 246 | } |
247 | 247 | ||