summaryrefslogtreecommitdiff
path: root/src/webidl-parser.y
diff options
context:
space:
mode:
authorVincent Sanders <vincent.sanders@collabora.co.uk>2012-09-07 17:42:14 +0100
committerVincent Sanders <vincent.sanders@collabora.co.uk>2012-09-07 17:42:14 +0100
commit686b84a6ccd64015c0de4e542504fa44424fb987 (patch)
tree62a1ec8e14d5ab559a1caaa75ca8f8b7c27106b8 /src/webidl-parser.y
parent3e84190d4874e1c97091758fe65756da51b4209b (diff)
downloadnsgenbind-686b84a6ccd64015c0de4e542504fa44424fb987.tar.gz
nsgenbind-686b84a6ccd64015c0de4e542504fa44424fb987.tar.bz2
slightly rearrange Web IDL start term to be left recusrsive and not have reduce/reduce conflicts
Diffstat (limited to 'src/webidl-parser.y')
-rw-r--r--src/webidl-parser.y11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/webidl-parser.y b/src/webidl-parser.y
index ef119c9..7425a21 100644
--- a/src/webidl-parser.y
+++ b/src/webidl-parser.y
@@ -37,11 +37,8 @@ int webidl_wrap()
%define api.pure
%error-verbose
- /* 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 */
+ /* the w3c grammar results in 19 shift/reduce conficts */
+%expect 19
%union
{
@@ -119,9 +116,9 @@ int webidl_wrap()
/* [1] start with definitions */
Definitions:
- /* empty */
+ ExtendedAttributeList Definition
|
- ExtendedAttributeList Definition Definitions
+ Definitions ExtendedAttributeList Definition
|
error ';'
{