Skip to content
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

Introduce macro for recovery rules #266

Open
hurricup opened this issue Apr 29, 2021 · 1 comment
Open

Introduce macro for recovery rules #266

hurricup opened this issue Apr 29, 2021 · 1 comment

Comments

@hurricup
Copy link
Contributor

It's a pretty common practice to use Starts with: from some rule quick-doc for recovery rule. And atm it's too verbose and hard to maintain. Would be really nice if we could do something like:

ruleA ::= ....
...
private recover_rule_x ::= !(startOf(ruleA) | additional tokens)
@hurricup
Copy link
Contributor Author

probably some math could be useful too, like:

private recover_rule_x ::= !(startOf(ruleA)-startOf(ruleB))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant