Additionally, this lack of restrictions around underscores creates an ambiguity when used with floating point exponents:
1_000_e+1
SemLiterals interprets this as if e+1 were a type suffix, which it obviously isn't.
Also, maybe there needs to be a better way of specifying the digit part and the suffix part, directly from the lexer?
This should not be allowed:
Additionally, this lack of restrictions around underscores creates an ambiguity when used with floating point exponents:
SemLiterals
interprets this as ife+1
were a type suffix, which it obviously isn't. Also, maybe there needs to be a better way of specifying the digit part and the suffix part, directly from the lexer?