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'm trying to use parametrized rules with my own enum type (&[T]).
Problem is that when using parametrized rules, I cannot use scoping. I have managed to do a workaround, but it's really not ideal.
Here is the code with the workaround - and with what I think would be better way to be able to write it.
Thanks for pointing that out. As a better workaround, it should work if you wrap it in an extra set of parentheses: single((MyEnum::Value)).
The rule_arg() rule in the meta-grammar needs to be expanded to better cover Rust expressions. Right now it only accepts literals, variable names, and anything in parentheses.
Hi,
I'm trying to use parametrized rules with my own enum type (&[T]).
Problem is that when using parametrized rules, I cannot use scoping. I have managed to do a workaround, but it's really not ideal.
Here is the code with the workaround - and with what I think would be better way to be able to write it.
I'm using the "0.7.0" version from crates.io
The text was updated successfully, but these errors were encountered: