Commit Graph
100 Commits
Author SHA1 Message Date
patrick 1631a70a0b Ensuring that goal is variable-free.
Even though the parser shouldn’t be able to put variables into the goal
description, the AST theoretically allows for this case. This commit
adds a defensive check that goal descriptions are variable-free.
2017-10-27 17:10:35 +02:00
patrick 27f773e091 Added support for derived predicates in goals.
By accident, the support for derived predicates in goals was missing.
This commit adds this, in a very similar way to how normal predicates
are handled in the goal description.
2017-10-27 16:46:38 +02:00
patrick 6d07fcbd6c Moved initial state translation to new header. 2017-10-27 16:38:01 +02:00
patrick 6415f871d7 Error for derived predicates in initial state.
Previously, derived predicates in the initial state weren’t handled at
all. That’s not an issue, because derived predicates shouldn’t occur in
the initial state. However, as a defensive measure, this commit adds an
error thrown in such cases.
2017-10-27 16:27:33 +02:00
patrick 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
patrick 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
patrick 9803710ff3 Fixed typo. 2017-10-25 19:00:54 +02:00
patrick 4d8525f52d Added comment for consistency. 2017-10-25 18:03:11 +02:00
patrick d0b7f89925 Removed unwanted newlines at the end of output. 2017-10-25 17:01:19 +02:00
patrick 032fa14f61 Updated tagline to match plasp’s recently extended tool set. 2017-10-14 02:37:46 +02:00
patrick 8b487b0a82 Structured change log more nicely. 2017-10-14 02:31:04 +02:00
patrick f6eed53550 Minor formatting. 2017-10-14 02:13:47 +02:00
patrick cb61f7cc5e Making command-line options in change log more specific. 2017-10-14 02:13:47 +02:00
patrick 5ec4dd2aaf Added new commands to the change log. 2017-10-14 02:13:47 +02:00
patrick b8bd42d361 Implemented “check-syntax” command. 2017-10-14 02:13:47 +02:00
patrick 89edafb586 Implemented “beautify” command. 2017-10-14 02:13:47 +02:00
patrick 0d5245b48b Showing list of available commands in help message. 2017-10-14 02:13:47 +02:00
patrick d20b30d34d Implemented “normalize” command. 2017-10-14 02:13:47 +02:00
patrick b99e7c198a Refactored “translate” command. 2017-10-14 02:13:46 +02:00
patrick c3b6d6939f Added missing inline directive. 2017-10-14 02:13:46 +02:00
patrick 868c220e42 Minor formatting. 2017-10-14 02:13:46 +02:00
patrick cde892c771 Added command for printing version information. 2017-10-14 02:13:46 +02:00
patrick 974c94fbb0 Unified version printing. 2017-10-14 02:13:46 +02:00
patrick 2be3f4256a Refactored command base class for simplicity. 2017-10-14 02:13:46 +02:00
patrick 5427876e36 Added workaround for GCC 6 compiler error. 2017-10-14 02:13:46 +02:00
patrick abdc4e31dc Refactored printing help messages in commands. 2017-10-14 02:13:46 +02:00
patrick db7ea6f2fe Removed unwanted methods. 2017-10-14 02:13:46 +02:00
patrick d8b2aa9720 Updated change log with new command interface. 2017-10-14 02:13:46 +02:00
patrick 63c4da8fad Made option group parsing more uniform. 2017-10-14 02:13:46 +02:00
patrick 3fe2886925 Updated CMake in Travis configuration for C++17 support. 2017-10-14 02:13:46 +02:00
patrick 86486207b8 Added help and version options to the translate command. 2017-10-14 02:13:46 +02:00
patrick 569b170aba Using cxxopts as a submodule. 2017-10-14 02:13:45 +02:00
patrick f6c9e19a60 Outsourced parsing of common options in plasp app. 2017-10-14 02:13:45 +02:00
patrick 6b891fcb8e Prepared app directory for future subcommands. 2017-10-14 02:13:45 +02:00
patrick 46cd4de854 Updated changelog with parser support for equalities. 2017-08-31 19:29:54 +02:00
patrick 871d3fcdb3 Renamed test suites for clarity. 2017-08-31 19:15:17 +02:00
patrick 4ad9355e47 Removed domains from blacklist that are now supported by parser. 2017-08-31 19:08:28 +02:00
patrick 1dee4655a7 Minor refactoring. 2017-08-31 19:04:10 +02:00
patrick 0a104d222c Removed unneeded constant parsing functions. 2017-08-31 18:51:27 +02:00
patrick 80167fd21b Removed unneeded variable parsing functions. 2017-08-31 18:48:48 +02:00
patrick 7de9980c10 Refactoring to reuse term parsing code. 2017-08-31 18:37:43 +02:00
patrick 89f3eb0306 Implemented term parser. 2017-08-31 18:34:34 +02:00
patrick 716b4801aa Added AST representation for “equals” expressions. 2017-08-31 17:54:30 +02:00
patrick 9199b68080 Renamed “pddlparse” library to simply “pddl”. 2017-08-09 17:52:50 +02:00
patrick 8b232e0155 Updated sequential horizon-bound meta encoding to match new output format. 2017-06-28 16:41:31 +02:00
patrick aec16f4407 Added option to compile plasp statically. 2017-06-28 01:43:12 +02:00
patrick b2ac47c2d3 Moved Boost dependency to plasp application only. 2017-06-28 01:42:29 +02:00
patrick 31cf6d287d Internal version bump to 3.1.0-git because of the scope of the changes since 3.0.3. 2017-06-28 01:06:30 +02:00
patrick b282225363 Moved util predicates to separate section. 2017-06-28 01:00:36 +02:00
patrick 95c03396d0 Fixed incorrect argument format in ASP output. 2017-06-28 00:51:42 +02:00
patrick a5038535f4 Added missing argument to ASP predicate. 2017-06-28 00:35:28 +02:00
patrick d82ae8544b Implemented translation of conditional PDDL effects. 2017-06-28 00:33:00 +02:00
patrick 0caef2e81c Extended error message. 2017-06-27 23:35:44 +02:00
patrick cb333fd420 Updated Catch to 1.9.6. 2017-06-27 23:21:36 +02:00
patrick f61cfa532d Added support for unconditional “forall” effect statements. 2017-06-27 23:17:32 +02:00
patrick 39b885c47c Handling effects in PDDL normalization step. 2017-06-27 22:32:49 +02:00
patrick da85683f7c Changed effects in normalized PDDL effects according to recent changes. 2017-06-27 18:17:02 +02:00
patrick 0beab67bd4 Made effect variant more concise. 2017-06-27 17:50:42 +02:00
patrick 4622f31fa4 Made conditional effect variant more concise. 2017-06-27 17:43:00 +02:00
patrick 0eff8e5dcf Only enumerating existentially bound parameters for “and” expressions. 2017-06-27 16:52:50 +02:00
patrick 1516561a58 Allowing “not” expressions without introducing derived predicates. 2017-06-27 12:39:51 +02:00
patrick 5c93840f85 Allowing “exists” derived predicates to hold the precondition directly. 2017-06-27 12:34:15 +02:00
patrick ea50cffac9 Separating top-level and nested preconditions correctly. 2017-06-27 12:29:43 +02:00
patrick 8a48a5043a Minor refactoring for consistency. 2017-06-27 12:17:42 +02:00
patrick cc90ef3ec6 Restructured file for clarity. 2017-06-27 11:56:51 +02:00
patrick 31e5ead21e Minor refactoring. 2017-06-27 11:44:33 +02:00
patrick d451d2d548 Handling negations introduced by “forall” elimination correctly. 2017-06-27 11:35:47 +02:00
patrick 729ecc9475 Added missing recursion step in PDDL reduction. 2017-06-27 11:34:53 +02:00
patrick 6c9ca0ccb8 Implemented translation of derived predicates. 2017-06-24 23:54:57 +02:00
patrick 6b1d079f69 Enabled test cases again by removing unsupported features from test files. 2017-06-24 21:49:13 +02:00
patrick 6e858ff52f Enabled test case again by exchanging unsupported input file. 2017-06-24 21:49:06 +02:00
patrick ca02b8ce62 Throwing exceptions for unsupported features instead of silently accepting them. 2017-06-24 20:27:01 +02:00
patrick 2b0b6570ea Excluding unsupported domains and instances from acceptance tests. 2017-06-24 20:14:06 +02:00
patrick 909949ff22 Removed unwanted test case. 2017-06-24 20:11:12 +02:00
patrick 436933f73f Added function to dermine stream location from arbitrary positions. 2017-06-24 19:01:09 +02:00
patrick 4d59732263 Minor refactoring. 2017-06-24 18:37:49 +02:00
patrick 12efe41551 Fixed issue due to undefined implementations. 2017-06-24 18:37:20 +02:00
patrick 362222c882 Finished implementing reduction. 2017-06-24 17:38:11 +02:00
patrick fcb9aa0a76 Added missing forward declaration. 2017-06-24 17:35:52 +02:00
patrick d9bae984b2 Implemented elimination of “forall” statements. 2017-06-24 17:30:08 +02:00
patrick 994801525a Implemented negation normalization (NFF). 2017-06-24 17:19:35 +02:00
patrick 939c2c735c Explicitly deleted default constructors of all variant types to avoid future errors. 2017-06-24 17:17:27 +02:00
patrick 287e1041bd Added missing inline directive. 2017-06-24 16:51:45 +02:00
patrick 9845c5ae9e Added missing parentheses in PDDL output. 2017-06-24 16:33:42 +02:00
patrick 7ae2734e9f Started implementing reduction, added support for “imply” expressions. 2017-06-24 16:03:32 +02:00
patrick d5dd8e849f Avoiding to decompose “not” expressions if they form simple literals. 2017-06-24 16:02:48 +02:00
patrick 079e2ac539 Printing arguments of “not” expressions on the same line for clarity. 2017-06-24 16:00:50 +02:00
patrick aeb8132fc7 Added missing inline directives. 2017-06-24 15:53:40 +02:00
patrick dd51f2b4fd Added missing const directive. 2017-06-24 15:53:16 +02:00
patrick d7e0beabdf Implemented normalization of preconditions. 2017-06-24 14:29:13 +02:00
patrick 9d1a8f4c0f Started implementing PDDL normalization. 2017-06-23 04:18:07 +02:00
patrick e4f4b5e066 Added initial normalized PDDL debug output functionality. 2017-06-23 03:54:51 +02:00
patrick 19f2c2ebf8 Added missing forward declaration. 2017-06-23 03:53:01 +02:00
patrick 2851f8d286 Corrected grammar of initial state facts. 2017-06-23 03:41:52 +02:00
patrick 9360ad3487 Added missing forward declaration. 2017-06-23 02:31:07 +02:00
patrick c0b71290a4 Minor formatting in PDDL debug output. 2017-06-23 01:48:47 +02:00
patrick 3d9bf2582f Fixed format of PDDL debug output. 2017-06-23 01:22:28 +02:00
patrick cbc9c86edd Removed unnecessary include directives. 2017-06-23 00:58:58 +02:00
patrick 480da6ff09 Built initial AST for normalized PDDL. 2017-06-23 00:51:09 +02:00
patrick 834209d506 Moved common output utilities to separate header. 2017-06-23 00:50:19 +02:00