diff options
author | David Walter Seikel | 2012-01-12 23:47:54 +1000 |
---|---|---|
committer | David Walter Seikel | 2012-01-12 23:47:54 +1000 |
commit | 48b5e46e340f58a11b446874fd068b9be6b35db8 (patch) | |
tree | 16c567193e5ebb7cda6a49fe179882c27677d9c6 | |
parent | Add a hex integer format, and comment about variations for float. (diff) | |
download | SledjHamr-48b5e46e340f58a11b446874fd068b9be6b35db8.zip SledjHamr-48b5e46e340f58a11b446874fd068b9be6b35db8.tar.gz SledjHamr-48b5e46e340f58a11b446874fd068b9be6b35db8.tar.bz2 SledjHamr-48b5e46e340f58a11b446874fd068b9be6b35db8.tar.xz |
Move and comment the lemon syntax error stuff.
-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 | ||