aboutsummaryrefslogtreecommitdiff
path: root/src/main/antlr4
diff options
context:
space:
mode:
authorJack Koenig2017-02-28 10:24:29 -0800
committerJack Koenig2017-03-01 18:01:28 -0600
commit7f280a5b0821c61284e9bf9ed7780cc825f7f3e8 (patch)
tree700d511e93c4058c627bb28ecc507d0c49eb6758 /src/main/antlr4
parent51f8f4a5e868a8e655091e3e61445d3cd772d2ba (diff)
Allow nested digit fields in subfield expressions
Workaround for #470. This allows parsing DoubleLits in subfield expressions.
Diffstat (limited to 'src/main/antlr4')
-rw-r--r--src/main/antlr4/FIRRTL.g41
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/antlr4/FIRRTL.g4 b/src/main/antlr4/FIRRTL.g4
index 69b7ba5d..cdec7260 100644
--- a/src/main/antlr4/FIRRTL.g4
+++ b/src/main/antlr4/FIRRTL.g4
@@ -164,6 +164,7 @@ exp
| 'SInt' ('<' intLit '>')? '(' intLit ')'
| id // Ref
| exp '.' fieldId
+ | exp '.' DoubleLit // TODO Workaround for #470
| exp '[' intLit ']'
| exp '[' exp ']'
| 'mux(' exp exp exp ')'