From 686b84a6ccd64015c0de4e542504fa44424fb987 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Fri, 7 Sep 2012 17:42:14 +0100 Subject: slightly rearrange Web IDL start term to be left recusrsive and not have reduce/reduce conflicts --- src/webidl-parser.y | 11 ++++------- 1 file 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 ';' { -- cgit v1.2.3