Skip to content

Parsing union types #206

Answered by bew
numToStr asked this question in Q&A
Oct 4, 2022 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

Hello! I think you can fix it by calling at_least(2) on the SeperatedBy structure:
Ref: https://docs.rs/chumsky/0.8.0/chumsky/combinator/struct.SeparatedBy.html#method.at_least

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@numToStr
Comment options

Answer selected by numToStr
Comment options

You must be logged in to vote
1 reply
@zesterer
Comment options

# for free to join this conversation on GitHub. Already have an account? # to comment
Category
Q&A
Labels
None yet
3 participants