summaryrefslogtreecommitdiff
path: root/src/webidl-parser.y
diff options
context:
space:
mode:
authorVincent Sanders <vincent.sanders@collabora.co.uk>2012-09-05 11:38:56 +0100
committerVincent Sanders <vincent.sanders@collabora.co.uk>2012-09-05 20:06:05 +0100
commit26dc8906aeb0783cf36bde31e9051b29a193eb23 (patch)
tree0921de4f6a92c3dc6571c1ba693e4ff19d76df8d /src/webidl-parser.y
parent1c7bc7e17ace1e457c4c0336353f142aef36d254 (diff)
downloadnsgenbind-26dc8906aeb0783cf36bde31e9051b29a193eb23.tar.gz
nsgenbind-26dc8906aeb0783cf36bde31e9051b29a193eb23.tar.bz2
make tests work
add basic commandlien handling
Diffstat (limited to 'src/webidl-parser.y')
-rw-r--r--src/webidl-parser.y10
1 files changed, 8 insertions, 2 deletions
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;