-
In the documentation for
Does this also hold true for |
Beta Was this translation helpful? Give feedback.
Answered by
zesterer
May 1, 2022
Replies: 1 comment 1 reply
-
Yes, this also holds for As mentioned in the docs,
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
baanan
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Yes, this also holds for
choice
. Chumsky is a PEG parser, so ambiguity is resolved by simply using the order of patterns as the tie-breaking mechanism.As mentioned in the docs,
choice
has a few tradeoff compared toor
chains: