sdmx-twg / vtl

This repository is used for maintaining the SDMX-VTL specification
11 stars 7 forks source link

Subtraction issue #408

Open NicoLaval opened 7 months ago

NicoLaval commented 7 months ago

a := 1 - 1; is VTL valid whereas a := 1 -1; is not, certainly because of unaryExpr definition in G4 file.

First exemple is detected as 1 minus 1, second as token 1 and token -1

vpinna80 commented 7 months ago

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.