summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7aee817)
raw | patch | inline | side by side (parent: 7aee817)
author | Sebastian Harl <sh@tokkee.org> | |
Mon, 24 Mar 2008 11:07:20 +0000 (12:07 +0100) | ||
committer | Florian 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>
other yacc implementations.
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
src/liboconfig/parser.y | patch | blob | history |
index 48b9bf3d764d2b12177382862061d427ad3e2a53..d237273c7e5d1376d7e24fe3d52ef9f3dd12b8e9 100644 (file)
--- a/src/liboconfig/parser.y
+++ b/src/liboconfig/parser.y
%type <sl> statement_list
%type <ci> entire_file
+/* pass an verbose, specific error message to yyerror() */
+%error-verbose
+
%%
string:
QUOTED_STRING {$$ = unquote ($1);}