aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjackkoenig2016-04-11 16:58:54 -0700
committerAndrew Waterman2016-04-16 17:06:56 -0700
commit6d3e0b8deb67f8f18a89f8f48bc94eb5c61a2dfb (patch)
tree02a40273d1b15a2641e38840b212c8711e09f083 /src
parent03dbf42bbc86cdebc693a0b9ab7d1d538b93d48a (diff)
Add more keywords to Id list
Diffstat (limited to 'src')
-rw-r--r--src/main/antlr4/FIRRTL.g413
1 files changed, 9 insertions, 4 deletions
diff --git a/src/main/antlr4/FIRRTL.g4 b/src/main/antlr4/FIRRTL.g4
index d1aa2c44..5daf20ae 100644
--- a/src/main/antlr4/FIRRTL.g4
+++ b/src/main/antlr4/FIRRTL.g4
@@ -141,10 +141,12 @@ keyword
| 'UBits'
| 'SBits'
| 'Clock'
+ | 'flip'
| 'wire'
| 'reg'
- | 'mem'
+ | 'with'
| 'reset'
+ | 'mem'
| 'data-type'
| 'depth'
| 'read-latency'
@@ -154,6 +156,7 @@ keyword
| 'writer'
| 'readwriter'
| 'inst'
+ | 'of'
| 'node'
| 'is'
| 'invalid'
@@ -167,11 +170,13 @@ keyword
| 'undefined'
| 'mux'
| 'validif'
- | 'write'
- | 'with'
+ | 'cmem'
+ | 'smem'
+ | 'mport'
+ | 'infer'
| 'read'
+ | 'write'
| 'rdwr'
- | 'infer'
;
// Parentheses are added as part of name because semantics require no space between primop and open parentheses