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
I'm trying to figure out how to use this with lalrpop. I have a TokenIterator that produces tokens, and I've gotten it working with my grammar. My grammar looks like this:
Similar to #803, I have an existing Token type (widely used throughout the system) that looks like this:
Token is not an enum, but it contains one.
I'm trying to figure out how to use this with lalrpop. I have a TokenIterator that produces tokens, and I've gotten it working with my grammar. My grammar looks like this:
The problem is hooking things up so the generated code matches on token.token_type instead of token.
When I generate the code, I get this compiler error:
If I hand-edit the generated code to change this:
match *__token {
to this:
match __token.token_type {
everything works beautifully.
How do I get the system to generate the code appropriately?
@ethindp It look like you got this working. What is your secret?
The text was updated successfully, but these errors were encountered: