Commit d2976170 by Zachary Snow

allow extraneous semicolons after package items

parent 98808854
...@@ -758,6 +758,7 @@ LHSAsgn :: { (LHS, Expr) } ...@@ -758,6 +758,7 @@ LHSAsgn :: { (LHS, Expr) }
PackageItems :: { [PackageItem] } PackageItems :: { [PackageItem] }
: {- empty -} { [] } : {- empty -} { [] }
| PackageItems ";" { $1 }
| PackageItems PackageItem { $1 ++ $2 } | PackageItems PackageItem { $1 ++ $2 }
PackageItem :: { [PackageItem] } PackageItem :: { [PackageItem] }
: DeclTokens(";") { map Decl $ parseDTsAsDecls $1 } : DeclTokens(";") { map Decl $ parseDTsAsDecls $1 }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment