aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/LuaSL
diff options
context:
space:
mode:
authorDavid Walter Seikel2012-01-12 23:47:54 +1000
committerDavid Walter Seikel2012-01-12 23:47:54 +1000
commit48b5e46e340f58a11b446874fd068b9be6b35db8 (patch)
tree16c567193e5ebb7cda6a49fe179882c27677d9c6 /LuaSL
parentAdd a hex integer format, and comment about variations for float. (diff)
downloadSledjHamr-48b5e46e340f58a11b446874fd068b9be6b35db8.zip
SledjHamr-48b5e46e340f58a11b446874fd068b9be6b35db8.tar.gz
SledjHamr-48b5e46e340f58a11b446874fd068b9be6b35db8.tar.bz2
SledjHamr-48b5e46e340f58a11b446874fd068b9be6b35db8.tar.xz
Move and comment the lemon syntax error stuff.
Diffstat (limited to 'LuaSL')
-rw-r--r--LuaSL/src/LuaSL_lemon_yaccer.y4
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