Skip to content

ANTLR backend: start rules needed #272

Closed

Description

@andreasabel

See #163 and antlr/antlr4#2689 : ANTLR will sometimes require a start rule

  StartX : X EOF;

for entrypoint X. The current ANTLR backend does not emit such start rules (the LR parser generators add it automatically), thus, the parser fails in some cases.
TODO: emit such start rules when generating the ANTLR input.

Activity

  1. added this to the 2.8.4 milestone on Nov 25, 2019
  2. self-assigned this
    on Nov 25, 2019
  3. andreasabel commented on Nov 25, 2019

    @andreasabel
    MemberAuthor

    BNFC now emits start rules for all entrypoints in the ANTLR backend.

  4. added a commit that references this issue on Nov 25, 2019
  5. added
    entrypointsConcerning entry points for the parser and the `entrypoints` directive
    on Mar 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Java/ANTLRbugentrypointsConcerning entry points for the parser and the `entrypoints` directive

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions