Building a compiler in Scala (medium.com)