www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 19368] New: NoScopeStatement is the same as Statement

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

          Issue ID: 19368
           Summary: NoScopeStatement is the same as Statement
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: trivial
          Priority: P1
         Component: dlang.org
          Assignee: nobody puremagic.com
          Reporter: peter.alexander.au gmail.com

Statement:
    ;
    NonEmptyStatement
    ScopeBlockStatement

NoScopeStatement:
    ;
    NonEmptyStatement
    BlockStatement

ScopeBlockStatement:
    BlockStatement

---

From these production rules, NoScopeStatement and Statement are identical, so
NoScopeStatement could be removed to simplify the grammar. --
Nov 06 2018