Skip to content

BNFC does not support \r and \f (lexer error) #257

Closed

Description

@andreasabel

BNFC chokes on a definition like the following in the grammar file.

token Name (char - [ "-(){};.@\" \n\r\t\f" ]) + ;

The reason is that the BNF lexer does handle \r (carriage return) and \f (form feed).

Activity

  1. added 2 commits that reference this issue on May 24, 2019
  2. jchook commented on Jun 29, 2019

    @jchook

    This seems like a critical issue.

    If I cherry-pick your commits, will it fix this issue?

    Also it appears BNFC does not support grammars with \0.

  3. andreasabel commented on Jun 29, 2019

    @andreasabel
    MemberAuthor

    I now merged my PR. Let me know if there are problems still.

  4. added this to the 2.8.3 milestone on Aug 27, 2019
  5. self-assigned this
    on Aug 27, 2019
  6. added
    lexer
    on Dec 15, 2019
  7. added a commit that references this issue on Jan 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementlexer

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions