You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
nhan-dang
changed the title
Stop consuming after find reserved word
How to stop consuming after find reserved word
Oct 24, 2022
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
The text was updated successfully, but these errors were encountered: