bnfc icon indicating copy to clipboard operation
bnfc copied to clipboard

Absent `entrypoints` should default to first NT rather than all NTs

Open andreasabel opened this issue 4 years ago • 0 comments

Haskell: if no entrypoints are given, everything is an entry point. Maybe we should have a special entrypoints * for that purpose, and otherwise default to the first category (like in other backends). The problem of exporting all non-terminals (NTs) is that unused rules are unlikely to be reported by happy, e.g. for useless list pragmas. BNFC could also warn of unused rules if it weren't for the default entrypoints behavior.

andreasabel avatar Jan 27 '21 20:01 andreasabel