Parsers—Because BNF Is Not Just for Academics Anymore
Dávid Pollák · Apress eBooks · 2009
We’ve covered a lot of ground so far, but most of the examples have been one or two lines of code. Sure, the control structures are helpful, and of course most of our programming projects pit dragons and bunnies in battle, but one of the biggest challenges we face is dealing with real-world data. If we’re lucky, the real-world data will be well formed in XML. But sometimes we’re not so lucky. Sometimes we’re handed a spec for a wire format or a text file format and told to “deal with it.” Good news: Scala is very good at helping you deal with it.