We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This is Fedora 33, Python 3.9.1 and parsimonious-0.8.1.
Looking at the sample
from parsimonious.grammar import Grammar grammar = Grammar( """ bold_text = bold_open text bold_close text = ~"[A-Z 0-9]*"i bold_open = "((" bold_close = "))" """) print(grammar.parse('((bold stuff))'))
I am wondering how I would specify the grammar if I would allow single ( and ) in text so that for example
(
)
text
print(grammar.parse('((bold (or something) stuff))'))
could be parsed.
Thanks a lot.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This is Fedora 33, Python 3.9.1 and parsimonious-0.8.1.
Looking at the sample
I am wondering how I would specify the grammar if I would allow single
(
and)
intext
so that for examplecould be parsed.
Thanks a lot.
The text was updated successfully, but these errors were encountered: