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
my_rule(s: &str) -> Expression = another_rule(s, res) ";" { Ok(Expression(s, res)) }
s is usable in the semantics action and can be passed to other rules.
s
The text was updated successfully, but these errors were encountered:
Instead of the another_rule(s, res) syntax, we might use ``(another_rule s res)` which is unambiguous. The backquote is used to say that the following expression is not a parser but a function that build a parser (meta-level).
another_rule(s, res)
Sorry, something went wrong.
Triage: abandon this feature for now. Too complicated, and unsure if it is that useful.
No branches or pull requests
s
is usable in the semantics action and can be passed to other rules.The text was updated successfully, but these errors were encountered: