Menu

#386 incomprehensive error message in float constants  Edit

compiler
open
nobody
None
2024-07-08
2022-05-05
No

If a floating point constant is written with a lower case 'e' the compiler emits the error message.
E.g. DCL f FLOAT INIT(1e3);

Syntax Error :extraneous input 'e3' expecting {')', ','}

It would be more comprehensive, if

  • the lower case e would be accepted
  • the error message would be like did you mean 1E3 ?

Discussion

  • Rainer Müller

    Rainer Müller - 2022-05-05

    after discussion with marcel:

    • the grammar becomes extended to accept lower and upper case (e/E)
    • in case of lower case e (e) and -std=PEARL90 a warning should be emitted
     
  • Rainer Müller

    Rainer Müller - 2024-07-08
    • summary: incomprehensive error message --> incomprehensive error message in float constants
     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB