You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ExpScalar.toString doesn't follow the rules of the parser. It effectively calls value.toString(). The only special rule is that it encloses it in single quotes if it is a char sequence. We need the encoding to be complimentary to the literals grammar used by the parser:
Longl = 3147483647L; // encode as 3147483647L, not 314748364BigDecimald = newBigDecimal("2.1000001B"); // encode as 2.1000001B, not 2.1000001// same for floats...Strings1 = "a'b"; // encode as "a'b", not 'a'b'Strings1 = "a\"'b"; // encode as 'a"\'b, not 'a"'b'
The text was updated successfully, but these errors were encountered:
andrus
changed the title
Long scalar toString method should append "L" suffix
Long scalar toString() should append "L" suffix
Sep 25, 2023
andrus
changed the title
Long scalar toString() should append "L" suffix
Exp: Long scalar toString() should append "L" suffix
Sep 25, 2023
andrus
changed the title
Exp: Long scalar toString() should append "L" suffix
Exp: numeric scalars toString() should append type suffix
Sep 25, 2023
andrus
changed the title
Exp: numeric scalars toString() should append type suffix
Exp: scalar encoding is incompatible with the parser rules
Sep 25, 2023
ExpScalar.toString doesn't follow the rules of the parser. It effectively calls
value.toString()
. The only special rule is that it encloses it in single quotes if it is a char sequence. We need the encoding to be complimentary to the literals grammar used by the parser:The text was updated successfully, but these errors were encountered: