Rough implementation of ValueParser.