scala parser for equations