Does the grammar allow an alias statement without a semicolon?
    Solomon E via Digitalmars-d-learn 
    digitalmars-d-learn at puremagic.com
       
    Fri Oct 17 17:52:22 PDT 2014
    
    
  
Hi, everyone, first post here. I'm trying to learn to parse D 
code.
The line "alias StorageClassesopt BasicType Declarator" in 
http://dlang.org/grammar#AliasDeclaration is apparently missing a 
semicolon after Declarator.
If that line is not missing a semicolon, could someone please 
explain how it's possible to parse D, given that according to the 
grammar with that line taken literally, some statements may come 
after each other without a semicolon, and some statements may end 
with one of the keywords "const", "immutable", "inout", or 
"shared", which are keywords that come at the beginning of some 
other statements?
    
    
More information about the Digitalmars-d-learn
mailing list