Ternary Operator #649
stephenmac7
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to use pest to parse a C-like language, and I'm having trouble creating a low-precedence right-associative ternary operator and having it play nicely with a precedence climber for binary operations. My current grammar includes:
and I'm using PrecClimber on expr. Do you have any suggestions?
Beta Was this translation helpful? Give feedback.
All reactions