From 48b5e46e340f58a11b446874fd068b9be6b35db8 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Thu, 12 Jan 2012 23:47:54 +1000 Subject: Move and comment the lemon syntax error stuff. --- LuaSL/src/LuaSL_lemon_yaccer.y | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'LuaSL') 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; } %parse_accept {printf("Parsing complete.\n");} +// TODO - Alledgedly this gets passed some sort of apparently useful information. shrug +%syntax_error {fprintf(stderr,"Syntax error!\n");} + %parse_failure {fprintf(stderr,"Giving up. Parser is hopelessly lost...\n");} %stack_overflow {fprintf(stderr,"Giving up. Parser stack overflow!\n");} -%syntax_error {fprintf(stderr,"Syntax error!\n");} /* Undocumented shit that might be useful later. Pffft -- cgit v1.1