Code

liboconfig/parser.y: Enabled verbose error messages.
authorSebastian Harl <sh@tokkee.org>
Mon, 24 Mar 2008 11:07:20 +0000 (12:07 +0100)
committerFlorian Forster <octo@huhu.verplant.org>
Mon, 24 Mar 2008 11:13:44 +0000 (12:13 +0100)
This uses bison's "%error-verbose" option which might not be available in
other yacc implementations.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
src/liboconfig/parser.y

index 48b9bf3d764d2b12177382862061d427ad3e2a53..d237273c7e5d1376d7e24fe3d52ef9f3dd12b8e9 100644 (file)
@@ -65,6 +65,9 @@ extern char           *c_file;
 %type <sl> statement_list
 %type <ci> entire_file
 
+/* pass an verbose, specific error message to yyerror() */
+%error-verbose
+
 %%
 string:
        QUOTED_STRING           {$$ = unquote ($1);}