www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2653] New: ConditionalStatement not referenced in rest of grammar

reply d-bugmail puremagic.com writes:

           Summary: ConditionalStatement not referenced in rest of grammar
           Product: D
           Version: 2.023
          Platform: PC
               URL: http://www.digitalmars.com/d/2.0/version.html
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: www.digitalmars.com
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: jlquinn optonline.net

Reading the text, I think the intent was to have the following

    Condition CCDeclarationBlock
    Condition CCDeclarationBlock else CCDeclarationBlock
    Condition : Declarations

Feb 09 2009
parent d-bugmail puremagic.com writes:

------- Comment #1 from jlquinn optonline.net  2009-02-09 08:48 -------
Looking into this further, dmd doesn't seem to distinguish between using
CCDeclarationBlock or NoScopeNonEmptyStatement.  The compiler's approach seems
reasonable to me. In that case, the grammar here should just be:

    Condition NoScopeNonEmptyStatement
    Condition NoScopeNonEmptyStatement else NoScopeNonEmptyStatement
    Condition : Declarations

Feb 09 2009