Closed andreasabel closed 6 years ago
BNFC (haskell) accepts totally empty input files, but not
;
It should also allow empty declarations consisting just of a ;. This would allow a style like
-- comment ; Rule. S ::= P -- comment ; Rule2. S ::= Q
where semicolons are aligned at the first column.
This can be fixed by defining custom Def lists with the extra rule:
Def
_. [Def] ::= ";" [Def] ;
BNFC (haskell) accepts totally empty input files, but not
It should also allow empty declarations consisting just of a
;
. This would allow a style likewhere semicolons are aligned at the first column.