3 ms·
As an aside, pyparsing is based strongly on the excellent "Parsec" library for Haskell. A number of other languages have similar parser combinator libraries.
by mbrubeck 17y ago
As an aside, pyparsing is based strongly on the excellent "Parsec" library for Haskell. A number of other languages have similar parser combinator libraries.
If you're looking for Ruby libraries specifically, check out: http://treetop.rubyforge.org/ http://treetop.rubyforge.org/ (Treetop uses PEGs rather than parser combinators, but like pyparsing it integrates very well with its host language.)
- DanielStraight 17y agoGood call on Parsec. Unfortunately, I haven't found Haskell nearly as practical as Python for day-to-day work. Treetop I had not heard of. It looks interesting.
- steveklabnik 17y agoThe only problem I had with Treetop when I tried to play around with it is the same problem that I tend to have with lots of Ruby libraries. No docs other than code. Treetop has docs, but they were kind of sparse last time I looked at them.