Closed Mark1626 closed 8 months ago
Parsing the following will fail because EInt uses Int type
EInt
Int
let x: ubit<32> = 0xffffffff;
Error message:
For input string: "ffffffff"
https://github.com/cucapra/dahlia/blob/f3735bcf6d249ee067fc9dc6fceb833f6bb1139e/src/main/scala/common/Syntax.scala#L138
Suggestion:
Changing EInt to use BigInt will fix the parse error. Subsequently TStaticInt will also have to use BigInt
TStaticInt
https://github.com/cucapra/dahlia/blob/f3735bcf6d249ee067fc9dc6fceb833f6bb1139e/src/main/scala/common/Syntax.scala#L84
Parsing the following will fail because
EInt
usesInt
typeError message:
https://github.com/cucapra/dahlia/blob/f3735bcf6d249ee067fc9dc6fceb833f6bb1139e/src/main/scala/common/Syntax.scala#L138
Suggestion:
Changing
EInt
to use BigInt will fix the parse error. SubsequentlyTStaticInt
will also have to use BigInthttps://github.com/cucapra/dahlia/blob/f3735bcf6d249ee067fc9dc6fceb833f6bb1139e/src/main/scala/common/Syntax.scala#L84