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
Hi, I love your work and I have question about parse a string which has spaces using Choices.
For example, I have create a grammar
grammar Weather
root <- 'the weather is' ('good' / 'nice')
This will not correctly parse the sentence "the weather is good" because there is a space between "the weather is" and "good". I have to add a space after the weather is in the grammar in order to parse the sentence.
grammar Weather
root <- 'the weather is ' ('good' / 'nice')
I'm wondering if there is a better way of doing this.
The text was updated successfully, but these errors were encountered:
Hi, I love your work and I have question about parse a string which has spaces using Choices.
For example, I have create a grammar
This will not correctly parse the sentence "the weather is good" because there is a space between "the weather is" and "good". I have to add a space after
the weather is
in the grammar in order to parse the sentence.I'm wondering if there is a better way of doing this.
The text was updated successfully, but these errors were encountered: