Implement native parser in Scala.