Parsing from scratch - Part 4

scalaparserseries

Until now, we implemented a few relatively simple parsers; for parsing dates and hex colors. In this post, we are going to build a parser for parsing configuration key value pairs. This is a bit more …

Read more →

Parsing from scratch - Part 2

scalaparserseries

Having learnt how to write a simple parsing library from scratch, it is time to put it to the test by writing simple parsers. In this post, we will write a few high-level parsers - dates of the format …

Read more →

Parsing from scratch - Part 1

scalaparserseries

Parsing from scratch is a powerful technique that allows you to build custom parsers for your specific needs. In this series, we will explore the basics of parsing and how to implement a simple parser …

Read more →

A Rogue JSON Parser

jsonparserscalaquiz

Recently, someone quizzed me to write a JSON parser. Time was limited. So, I told them I might not be able to write a disciplined parser that builds an AST and creates JSON objects out of it. In the …

Read more →