BNFC / bnfc

BNF Converter
http://bnfc.digitalgrammars.com/
582 stars 161 forks source link

Fix #384: Haskell/OCaml printer: nil case also for nonempty lists #385

Closed andreasabel closed 2 years ago

andreasabel commented 2 years ago

Fix #384: Haskell/OCaml printer: nil case also for nonempty lists

Not 100% sure whether I want to merge this, as it only fixes the nonempty list case, not the precedence category list case (e.g. [Exp2]).

andreasabel commented 2 years ago

Update: also fixing the precedence list issue. So, fine to merge.