Incorrect lexing of numeric literals

Issue #83 resolved
Jesper Öqvist created an issue

JastAddJ 7.1.1-252-gbd031b3

The following correct expression gives a parsing error due to too greedy lexing:

int x = 0;
int y = 0xE-x;

Also, the following incorrect numeric literals are accepted by JastAddJ:

double _ = .0E; // missing exponent
double _ = .0eD; // missing exponent

Also, incorrect errors about rounding to zero are generated:

Semantic Error: It is an error for nonzero floating-point 0x0P-010 to round to zero
Semantic Error: It is an error for nonzero floating-point 0x0.p0f to round to zero

Comments (1)

  1. Log in to comment