summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLarry Doolittle <ldoolitt@recycle.lbl.gov>2017-11-28 21:10:29 -0800
committerLarry Doolittle <ldoolitt@recycle.lbl.gov>2017-11-28 21:10:29 -0800
commit85b71acd10a5855bef8ab7dc05c11e2902493422 (patch)
treee9c4c0424d0ae628d5864d127815c9d3c14bd411
parent051a68e5336ee1f575518be08e5c3e6b2b549c42 (diff)
downloadvhdl2vl-85b71acd10a5855bef8ab7dc05c11e2902493422.zip
vhdl2vl-85b71acd10a5855bef8ab7dc05c11e2902493422.tar.gz
Remove redundant bison rule
Nicely reduces number of shift/reduce conflicts back to 2. I like having a good regression test suite!
-rw-r--r--src/vhd2vl.y5
1 files changed, 1 insertions, 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);
}
OpenPOWER on IntegriCloud