From 664d5b33094b7158bb6f8a583a89d83ac69be83e Mon Sep 17 00:00:00 2001 From: Adam Izraelevitz Date: Thu, 9 Mar 2017 12:39:04 -0800 Subject: Sint tests and change in serialization (#456) SInt representation is no longer 2's complement, but instead a positive number (hex or base 10) that is optionally preceded by a sign (-+).--- src/main/antlr4/FIRRTL.g4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/antlr4') diff --git a/src/main/antlr4/FIRRTL.g4 b/src/main/antlr4/FIRRTL.g4 index cdec7260..e26aca2e 100644 --- a/src/main/antlr4/FIRRTL.g4 +++ b/src/main/antlr4/FIRRTL.g4 @@ -297,7 +297,7 @@ PosInt ; HexLit - : '"' 'h' ( HexDigit )+ '"' + : '"' 'h' ( '+' | '-' )? ( HexDigit )+ '"' ; DoubleLit -- cgit v1.2.3