Threat Stack Blog and Cloud Security News

Continuous security monitoring for your cloud.

Parsing Simple Grammars in Scala With parboiled2

by Ryan Plessner, posted in Scala, parboiled, PEG, parser generator, parboiled2

Parboiled2 Scala Blog Banner-1.jpg

parboiled2 is a Macro-Based PEG Parser Generator written in Scala. It has become our preferred tool for creating parsers for simple grammars. It offers a fairly simple syntax for creating parsers and boasts significantly better performance over Scala Combinators.

To illustrate its use, we will use this post to build a parser for a simplified version of the Slack Assisted Search.

Read More [fa icon=long-arrow-right"]

Jan 25, 2017 12:56:12 PM

[fa icon="comment"] 0 Comments

Subscribe via email:

Posts by Topic

see all