define parser for type and value system