Skip to content

Possible to have empty productions? #83

Description

@FrankC01

I have two modes: One where I do a full parse and another where I just want to parse out certain productions. Is this possible? Do I need to setup the Lexer differently or can I handle it in the Parser? If so, for either, any hints would be helpful.

Activity

  1. shellbit32 commented on Jul 11, 2019

    @shellbit32

    Would love to know this as well. I need to make a production that represents a list of arguments. Like this:

    arg_ : arg arg_
    arg_ : "empty"

  2. FrankC01 commented on Jul 16, 2019

    @FrankC01
    Author

    @FernandoLGL I ended up adding a different lexer for my needs...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions