Replies: 1 comment
-
Hey, apologies about not noticing this until now. I believe that binary operator section in the tutorial should cover this. If not, I'm happy to help! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It's all in the name. With a single operator, it's easy enough to just write it as a repetition and then fold over the resultant
Vec
, but that doesn't work when there are multiple operators of the same precedence. What is the best way to do this? As an example, let's say I want to parse the+
and-
operators, which have equal precedence and are left-associative.Beta Was this translation helpful? Give feedback.
All reactions