Skip to content

Use white-space as separator #70

Closed

Description

@gdetrez

A frequent question is how to use white-space as a separator, doing this:

separator A " ";

doesn't work and the answer is to use an empty string:

separator A "";

Maybe bnfc could accept " " as a separator and treat it like "".

Activity

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

    @andreasabel
    Member

    It is easy to treat white space separator rules as terminator "" rules. (Fixed.)
    A bit more work is needed if we want to print the user provided white space separators faithfully. (Done for the Haskell backend, so far.)

  4. added a commit that references this issue on Nov 24, 2019
  5. added
    lists
    on Jan 4, 2020
  6. added 2 commits that reference this issue on Jan 20, 2020
  7. andreasabel commented on Jan 20, 2020

    @andreasabel
    Member

    Printing now fixed for the other backends.

  8. added
    printer
    on Feb 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementlistsprinter

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions