-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
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
Add a way to disable any .wrapRE's in a given rule #7
Comments
One possible syntax is:
This excludes production A, which should be a single-terminal production, and all occurrences of |
@marcelocantos New proposal. change the wbnf grammar to:
which documents 3 magic rules into the grammar itself:
If I have time on sunday I might try implementing this. (which subgrammars are supported these rules will be simpler) |
The idea behind the syntax I suggested was to use the existing grammar to shoehorn in the additional concepts. If we want to explicitly define them as part of the grammar, I have no huge objection, but if we're going to go to the effort, then you don't really need to pretend that they are "rules". You could provide a more specific syntax, e.g. (not proposing, just thinking out loud):
As an alternative to the
Obviously, the name |
It's probably worth thinking about #19 in all of this. Regexps will eventually go away as a concept, which may or may not impact the way we think about the above. |
Wow. Yeah that looks pretty powerful. Just wonder how complicated it would be to actually implement. |
* handle look-ahead in ast * handle in counter * handler in from_parsernode * fix counter
To be able to capture indents we need to capture leading whitespace. Currently the .wrapRE rule will block any attempts to capture whitespace so we need a way to tell the parser to not wrap part or all of a rule.
unsure how to implement this.
The text was updated successfully, but these errors were encountered: