diff options
-rw-r--r-- | LuaSL/src/LuaSL_lemon_yaccer.y | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/LuaSL/src/LuaSL_lemon_yaccer.y b/LuaSL/src/LuaSL_lemon_yaccer.y index 814f2b5..731a52d 100644 --- a/LuaSL/src/LuaSL_lemon_yaccer.y +++ b/LuaSL/src/LuaSL_lemon_yaccer.y | |||
@@ -82,11 +82,13 @@ script ::= statement(A). { A->left = param->ast; param->ast = A; } | |||
82 | 82 | ||
83 | %parse_accept {printf("Parsing complete.\n");} | 83 | %parse_accept {printf("Parsing complete.\n");} |
84 | 84 | ||
85 | // TODO - Alledgedly this gets passed some sort of apparently useful information. shrug | ||
86 | %syntax_error {fprintf(stderr,"Syntax error!\n");} | ||
87 | |||
85 | %parse_failure {fprintf(stderr,"Giving up. Parser is hopelessly lost...\n");} | 88 | %parse_failure {fprintf(stderr,"Giving up. Parser is hopelessly lost...\n");} |
86 | 89 | ||
87 | %stack_overflow {fprintf(stderr,"Giving up. Parser stack overflow!\n");} | 90 | %stack_overflow {fprintf(stderr,"Giving up. Parser stack overflow!\n");} |
88 | 91 | ||
89 | %syntax_error {fprintf(stderr,"Syntax error!\n");} | ||
90 | 92 | ||
91 | /* Undocumented shit that might be useful later. Pffft | 93 | /* Undocumented shit that might be useful later. Pffft |
92 | 94 | ||