From 85b71acd10a5855bef8ab7dc05c11e2902493422 Mon Sep 17 00:00:00 2001 From: Larry Doolittle Date: Tue, 28 Nov 2017 21:10:29 -0800 Subject: Remove redundant bison rule Nicely reduces number of shift/reduce conflicts back to 2. I like having a good regression test suite! --- src/vhd2vl.y | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/vhd2vl.y b/src/vhd2vl.y index 0848952..682c802 100644 --- a/src/vhd2vl.y +++ b/src/vhd2vl.y @@ -917,7 +917,7 @@ slist *emit_io_list(slist *sl) /* rule for "...ELSE IF edge THEN..." causes 1 shift/reduce conflict */ /* rule for opt_begin causes 1 shift/reduce conflict */ -%expect 3 +%expect 2 /* glr-parser is needed because processes can start with if statements, but * not have edges in them - more than one level of look-ahead is needed in that case @@ -2373,9 +2373,6 @@ expr : signal { /* two argument type conversion e.g. to_unsigned(x, 3) */ $$ = addnest($3); } - | CONVFUNC_2 '(' expr ',' NAME ')' { - $$ = addnest($3); - } | '(' expr ')' { $$ = addnest($2); } -- cgit v1.2.1