From ef1d27a84addc46353884eb06ea18f4c68e6a808 Mon Sep 17 00:00:00 2001 From: Jack Koenig Date: Fri, 8 Oct 2021 17:09:55 -0700 Subject: Support parsing missing keywords as ids (#2381) Reset, AsyncReset, Interval, attach, assert, assume, and cover have all been added as keywords but not added to the allowlist for parsing as ids.--- src/main/antlr4/FIRRTL.g4 | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/main') diff --git a/src/main/antlr4/FIRRTL.g4 b/src/main/antlr4/FIRRTL.g4 index aa53f2f0..f5116485 100644 --- a/src/main/antlr4/FIRRTL.g4 +++ b/src/main/antlr4/FIRRTL.g4 @@ -225,8 +225,11 @@ keywordAsId | 'UInt' | 'SInt' | 'Clock' + | 'Reset' + | 'AsyncReset' | 'Analog' | 'Fixed' + | 'Interval' | 'flip' | 'wire' | 'reg' @@ -259,6 +262,10 @@ keywordAsId | 'read' | 'write' | 'rdwr' + | 'attach' + | 'assert' + | 'assume' + | 'cover' ; // Parentheses are added as part of name because semantics require no space between primop and open parentheses -- cgit v1.2.3