From 8eea105e6296daedc21b1a1d5c0c0b23f68cba19 Mon Sep 17 00:00:00 2001 From: "Emden R. Gansner" Date: Tue, 2 Sep 2014 11:15:18 -0400 Subject: [PATCH] Fix bug 2485: update dotty's parser to accept two level port syntax --- cmd/lefty/dot2l/dotparse.y | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/cmd/lefty/dot2l/dotparse.y b/cmd/lefty/dot2l/dotparse.y index a5e1e41c7..212f2b81f 100644 --- a/cmd/lefty/dot2l/dotparse.y +++ b/cmd/lefty/dot2l/dotparse.y @@ -135,12 +135,11 @@ port_location: ':' T_id { strcat (portstr, $2); free ($2); } -| ':' '(' T_id ',' T_id ')' +| ':' T_id ':' T_id { - strcat (portstr, "("); strcat (portstr, $3); - strcat (portstr, ","); strcat (portstr, $5); - strcat (portstr, ")"); - free ($3), free ($5); + strcat (portstr, $2); + strcat (portstr, ":"); strcat (portstr, $4); + free ($2), free ($4); } ; -- 2.40.0