Commit Graph

13 Commits

Author SHA1 Message Date
010e7bf41e Requiring goal to contain only one statement.
Previously, the parser read the first statement of the goal as its
precondition, but didn’t check that it was properly terminated with a
closing parenthesis. This allowed arbitrary text to be included within
the goal description without error, which was incorrect.

This commit fixes this issue and adds a corresponding unit test.
2017-11-15 15:52:10 +01:00
f0e553df23 Minor formatting. 2017-11-08 17:11:36 +01:00
feaef5a3fa Translating derived predicates of problems.
While derived predicates stemming from the domain were already
translated, the ones from the problem were missing. This commit fixes
that, although it duplicates the definition of “contains.”
2017-10-27 16:21:54 +02:00
624ddc38aa Fixed incorrect derived predicate IDs in problems.
The IDs of derived predicates within problems were accidentally starting
with 1 again, colliding with the IDs of derived predicates in the
domain. With this fix, the IDs are continuously incremented, even after
switching from domain to problem.
2017-10-25 19:01:11 +02:00
871d3fcdb3 Renamed test suites for clarity. 2017-08-31 19:15:17 +02:00
4ad9355e47 Removed domains from blacklist that are now supported by parser. 2017-08-31 19:08:28 +02:00
1dee4655a7 Minor refactoring. 2017-08-31 19:04:10 +02:00
0a104d222c Removed unneeded constant parsing functions. 2017-08-31 18:51:27 +02:00
80167fd21b Removed unneeded variable parsing functions. 2017-08-31 18:48:48 +02:00
7de9980c10 Refactoring to reuse term parsing code. 2017-08-31 18:37:43 +02:00
89f3eb0306 Implemented term parser. 2017-08-31 18:34:34 +02:00
716b4801aa Added AST representation for “equals” expressions. 2017-08-31 17:54:30 +02:00
9199b68080 Renamed “pddlparse” library to simply “pddl”. 2017-08-09 17:52:50 +02:00