← Back to context

Comment by kccqzy

8 hours ago

That’s because Python is a bad language for writing parser combinators and parsers based on them. Try Haskell.

I have written parsers using parser combinators in Haskell and Clojure. I find that ML-like (Haskell, OCaml, StandardML) languages generally are great at writing parsers, even hand-written ones in it is a superior experience.

In this case, this was a project at $EMPLOYER in an existing codebase with colleagues who have never seen Haskell code, using Haskell would've been a major error in judgement.