Scala project with code snippets for the blog: http://automaton.opa.ro