A simple recursive regular expression matcher written in Scala.