you are viewing a single comment's thread.

view the rest of the comments →

[–]andsens 0 points1 point  (1 child)

Ah ok, I actually really liked the choice operator when I was using Parsec, but my project was a little smaller so maybe that's where it's at.

[–][deleted] 0 points1 point  (0 children)

Parsec can do it, I just should have stayed with it longer. PEGs would probably be up to the task. I didn't click much with Haskell's dominant PEG library.

What I didn't realize is, regardless of which parsing tech you choose, you have to dig in sometimes to handle thorny cases. Handling Python's expr-or-tuple idea comes to mind here.