Scala Parser Combinators: The Easier Way to Create an External DSL
summary
Shows how Scala parser-combinators builds an external DSL that replaces a bulky XML profile with a concise text format, turning a 115-line XML example into a 32-line DSL equivalent. Implements a 200-line parser that lives next to and produces plain Scala model classes, avoids parser-generator setup, composes small parsers into larger ones, and integrates directly into the application stack — a working, production-oriented parser that reduced boilerplate and improved readability.
AI-written summary · about
related talks
45mDesign and Effectiveness of Internal DSLs in Scala
41mTeaching Domain Specific Languages in Scala
21mBroaden Scala
44mFunctional Interpreters and You
53mUnderstanding parser combinators: a deep dive
44mPretty Parsing
13mParboiled2: better parsing in Scala
24mDesigning a DSL That Perfectly Solves Your Problem
