From 26dc8906aeb0783cf36bde31e9051b29a193eb23 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Wed, 5 Sep 2012 11:38:56 +0100 Subject: make tests work add basic commandlien handling --- src/webidl-parser.y | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/webidl-parser.y') diff --git a/src/webidl-parser.y b/src/webidl-parser.y index 73ed2c6..c4e25f1 100644 --- a/src/webidl-parser.y +++ b/src/webidl-parser.y @@ -16,9 +16,9 @@ -void webidl_error(const char *str) +static void webidl_error(const char *str) { - fprintf(stderr,"error: %s\n",str); + fprintf(stderr,"error: %s\n",str); } int webidl_wrap() @@ -33,6 +33,12 @@ int webidl_wrap() %locations %define api.pure + /* the w3c grammar results in 10 shift/reduce, 2 reduce/reduce conflicts + * The reduce/reduce error are both the result of empty sequences + */ + /* %expect 10 */ + /* %expect-rr 2 */ + %union { int attr; -- cgit v1.2.3