[Issue 1236] New: Grammar for Floating Literals is incomplete

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed May 16 01:36:25 PDT 2007


http://d.puremagic.com/issues/show_bug.cgi?id=1236

           Summary: Grammar for Floating Literals is incomplete
           Product: D
           Version: unspecified
          Platform: All
               URL: http://www.digitalmars.com/d/lex.html
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P2
         Component: www.digitalmars.com
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: d at chqrlie.org


The grammar for floating literals has no rules to describe imaginary integers :
1i for instance is parsed as an idouble by the compiler, but fails to match any
of the FloatLiteral grammar rules.

An example would be helpful too.

1i * 1i -> -1. (a double)


-- 



More information about the Digitalmars-d-bugs mailing list