www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12623] New: Special lexing case not mentioned in language spec

https://issues.dlang.org/show_bug.cgi?id=12623

          Issue ID: 12623
           Summary: Special lexing case not mentioned in language spec
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: websites
          Assignee: nobody puremagic.com
          Reporter: brian-schott cox.net

int a(int)
{
  return 10;
}

void main() {
    auto x = 1.a;
    auto a = x.a;
    auto b = x. a;
    auto y = 1. a;
}

A lexer written according to the language spec will not properly lex the code
in this example because the specification states that the longest possible
match should be used.

--
Apr 22 2014