Z language compiler in Scala