Parse error in let expression for bitwidth 32 and above
Closed this issue · 0 comments
Mark1626 commented
Parsing the following will fail because EInt
uses Int
type
let x: ubit<32> = 0xffffffff;
Error message:
For input string: "ffffffff"
dahlia/src/main/scala/common/Syntax.scala
Line 138 in f3735bc
Suggestion:
Changing EInt
to use BigInt will fix the parse error. Subsequently TStaticInt
will also have to use BigInt
dahlia/src/main/scala/common/Syntax.scala
Line 84 in f3735bc