4 ms·
Even though they have performance issues - I still love Scala's parser combinator libraries. I hadn't really dealt much with parsing prior to my use of them, an
by hugofirth 12y ago
Even though they have performance issues - I still love Scala's parser combinator libraries. I hadn't really dealt much with parsing prior to my use of them, and they made the process of parsing seem a lot more obvious and less "mystical" .
- platz 12y agoI saw there was a port of attoparsec recently, but it still has to use trampolines. Do you know of any benchmarks of different parsers, especially combinator libraries?
- stephenjudkins 12y agoparboiled2 [https://github.com/sirthias/parboiled2 https://github.com/sirthias/parboiled2] offers pretty much everything the built-in parser combinators do, but with fewer bugs and vastly improved performance. Since both use PEG grammars, it should be straightforward to port over. parboiled2 is fast because it generates fast, stateful parsers using macros while only exposing a purely functional interface.