-
Hi, I'm using In particular, the token representations contained in the Implementing custom Am I missing something or is this a limitation of Thanks for your time! edit: Ahh, probably the idea is to use the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I ended up with using a parameterized rule to wrap token parsing: rule tok(t: Token<'a>) -> () = quiet!{[t2 if t2 == t] { () }} / expected!(t.to_str()) In other rules I can then parse tokens via e.g. |
Beta Was this translation helpful? Give feedback.
I ended up with using a parameterized rule to wrap token parsing:
In other rules I can then parse tokens via e.g.
tok(Colon)
instead of[Colon]
.