Commit Graph
261 Commits
Author SHA1 Message Date
patrick b21b4f47bf Made form of variables within values consistent.
Previously, variables referenced within values were unpacked within
values. This was inconsistent, because all predicates are usually used
in their unpacked form in the rest of the output format. This commit
makes this consistent by using variables in their packed form within
values, making it more compact to handle them.
2017-11-03 01:49:24 +01:00
patrick 3a7b61de68 Fixed syntax error at end of initial state facts.
Due to a mistake in commit 6d07fcb, the closing parenthesis and period
at the end of initial state facts was omitted. This adds these back in
order to solve this syntax error.
2017-11-01 16:00:48 +01:00
patrick 72fc7493b2 Removed Boost dependency in language distinction.
As Boost isn’t used in the rest of this project anymore, this commit
removes the unnecessary dependency to boost::bimap just for language
detection, and replaces it with a simple std::map instead.
2017-10-28 15:44:37 +02:00
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 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 c3b6d6939f Added missing inline directive. 2017-10-14 02:13:46 +02:00
patrick 9199b68080 Renamed “pddlparse” library to simply “pddl”. 2017-08-09 17:52:50 +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 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 f61cfa532d Added support for unconditional “forall” effect statements. 2017-06-27 23:17:32 +02:00
patrick da85683f7c Changed effects in normalized PDDL effects according to recent changes. 2017-06-27 18:17:02 +02:00
patrick 6c9ca0ccb8 Implemented translation of derived predicates. 2017-06-24 23:54:57 +02:00
patrick ca02b8ce62 Throwing exceptions for unsupported features instead of silently accepting them. 2017-06-24 20:27:01 +02:00
patrick 9d1a8f4c0f Started implementing PDDL normalization. 2017-06-23 04:18:07 +02:00
patrick e93085d88a Moved color logging to separate library for reusing it in PDDL parser. 2017-06-22 20:58:31 +02:00
patrick 595891f040 Minor formatting. 2017-06-22 20:36:48 +02:00
patrick 19f2ad19b0 Fixed incorrect language detection with legacy “in-package” directives. 2017-06-20 03:01:20 +02:00
patrick e345fd60fd Reimplemented plasp with PDDL parsing library. 2017-06-20 01:53:55 +02:00
patrick 586e93190c Made plasp compatible to recent tokenizer changes. 2017-06-19 00:28:17 +02:00
patrick e312a91632 Renamed tokenizing module for clarity. 2017-05-12 14:17:57 +02:00
patrick ebcf263abd Removed unnecessary boost::filesystem dependency. 2017-05-09 15:11:35 +02:00
patrick 27c6b69874 Moved basic parsing to a separate module. 2017-05-09 15:05:59 +02:00
patrick 9c9995380e Resolved compiler warnings with clang. 2017-05-09 13:00:44 +02:00
patrick 33e61beb4f Fixed bug related to decomposing quantified expression. 2016-12-08 02:59:20 +01:00
patrick f1d2c4e532 Removed invalid to-do. 2016-12-08 01:58:36 +01:00
patrick a07d105906 Added missing include. 2016-12-08 01:44:36 +01:00
patrick 31182b6de9 Implemented translation of derived predicates in action preconditions. 2016-12-08 01:28:00 +01:00
patrick 586f53a788 Restructured functions related to translation of predicates. 2016-12-08 01:27:38 +01:00
patrick 1561aa5eb9 Put functions related to translation of predicates in separate file. 2016-12-08 01:18:00 +01:00
patrick f4672a5b50 Added -Wextra flag to notice warnings more easily. 2016-12-08 01:17:09 +01:00
patrick a5f1ebdc09 Removed unnecessary include directives. 2016-12-08 01:07:17 +01:00
patrick 8587aa23c4 Put functions related to translation of variables in separate file. 2016-12-08 01:05:39 +01:00
patrick 6355921e59 Implemented preconditions for derived predicates. 2016-12-08 00:52:09 +01:00
patrick 2334686c59 Renamed arguments to parameters in predicate declarations. 2016-12-07 02:55:44 +01:00
patrick ebab65e233 Refactoring to avoid dynamic casts. 2016-12-07 02:29:48 +01:00
patrick 692d3fe83a Refactoring to avoid checking expression types via type enum. 2016-12-07 02:11:54 +01:00
patrick 3b110c0b8a Started implementing translation for derived predicates. 2016-12-07 01:56:06 +01:00
patrick c1340f6297 Merge branch 'develop' of github.com:potassco/plasp into normalization 2016-12-02 01:16:22 +01:00
patrick 9e1cdaaa51 Implemented new command-line options replacing --warning-level. 2016-12-01 17:18:58 +01:00
patrick cfce6b1bbd Removed unnecessary namespace directive. 2016-12-01 16:26:29 +01:00
patrick c4e19dddae Refactoring to use cleaner output implementation. 2016-11-29 06:03:05 +01:00
patrick f4efb4f3d4 Improved command-line interface. 2016-11-29 02:05:01 +01:00
patrick 0ca51236bd Added unique ID to derived predicates for easier translation. 2016-09-09 17:08:31 +02:00
patrick a62cc8b3b9 Started implementing derived predicates for decomposing complex PDDL conditions. 2016-09-09 16:42:16 +02:00
patrick 9cccba42e0 Implemented parsing conditional effects. 2016-09-08 15:56:30 +02:00
patrick 4fc9b35c13 Implemented disjunctive normal form. 2016-09-08 03:42:32 +02:00