Open NicoLaval opened 7 months ago
a := 1 - 1; is VTL valid whereas a := 1 -1; is not, certainly because of unaryExpr definition in G4 file.
a := 1 - 1;
a := 1 -1;
unaryExpr
First exemple is detected as 1 minus 1, second as token 1 and token -1
confirmed, the INTEGER_CONSTANT and NUMBER_CONSTANT rules should be removed from the lexer, and specific cases (positive/negative int/num) should be added to the "constant" parser rule.
a := 1 - 1;
is VTL valid whereasa := 1 -1;
is not, certainly because ofunaryExpr
definition in G4 file.First exemple is detected as 1 minus 1, second as token 1 and token -1