Skip to content

Absent entrypoints should default to first NT rather than all NTs #335

@andreasabel

Description

@andreasabel

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    HaskellLBNFConcerning the LBNF syntax and its checkingentrypointsConcerning entry points for the parser and the `entrypoints` directiveerror-reportingConcerning error messages BNFC giveslanguage-changeChanges the semantics of LBNFparserIssues concerning parser generating

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions