Skip to content

How to stop consuming after find reserved word #224

Open
@nhan-dang

Description

@nhan-dang

I have a question: I have defined a grammar looks like this in general:
value to value:
value = ~r"[\w]+(_? [\w]+)"
to = "to"
So if i parse: "place the shelves to higher place", i will give the IncompleteParseError, because the value also consume the entire string. I want to have it split into 2 values: "place the shelves" and "higher place". Is there any way i can define this? Thank you

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