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.
Haskell: if no
entrypoints
are given, everything is an entry point. Maybe we should have a specialentrypoints *
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 byhappy
, e.g. for useless list pragmas. BNFC could also warn of unused rules if it weren't for the defaultentrypoints
behavior.