Closed GustavTaxen closed 4 years ago
Planning domain editor is more permissive than PDDL4J.
You use negation in the precondition of the action goto without using the requirement :negative_preconditions.
I encountered the same issue. I didn't realize I needed to require negative preconditions
but when I added what you mentioned here, with an underscore, it simply added to the errors. I found that changing _ to - got it to parse.
I'll add that while it is fine to say that the requirement should be included, I wonder if it's possible for the lexer to be a bit more informative. Simply saying things like a paren unexpected didn't tell me anything -- I'm glad I thought to search closed issues for someone who encountered it before me.
New to PDDL, so this may be a rookie error!
The domain file below fails to parse in pddl4j. It runs properly at http://editor.planning.domains.
I use
java -jar build/libs/pddl4j-3.8.3.jar -o gt/domain.pddl -f gt/problem.pddl
and get the error
Lexical error at line 10, column 3, file (gt/domain.pddl) : unexpected token "(".