Implement trivial pddl domain name grammar and use it for string parsing