Simple expression parser in Scala