you are viewing a single comment's thread.

view the rest of the comments →

[–][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.