Closed Hibou57 closed 6 years ago
It’s in GMP, so no, it’s later after lexing is done, because lexing only stores the T_INT
string, does not evaluate it.
mpz_init_set_str treats empty string "" as invalid input. I have fixed this issue.
By the way, if you pass the flag '--debug' to patsopt, the compiler can give you a bit of information when an error occurs.
You are really nice :)
I did not knew the --debug
flag, will keep it in mind. It indeed gives relevant informations.
Type‑checking this (for a test):
Which after
pats_lexing.dats
, should be the same as 0x0u, I get this error message frompatsopt
:Unfortunately, it gives no source location. Pretty sure the error occurs while lexing.