patrick
/
plasp
Archived
1
0
Fork 0
Commit Graph

356 Commits

Author SHA1 Message Date
Patrick Lühne 4fc7355fba Removed unwanted newline. 2016-08-13 13:21:00 +02:00
Patrick Lühne 340db244f6 Fixed bug in output format. 2016-08-13 04:04:28 +02:00
Patrick Lühne 8969364f73 Fixed syntax error in output format. 2016-08-13 03:27:37 +02:00
Patrick Lühne b67168134b Made initial state definition consistent with unified output format. 2016-08-13 03:22:25 +02:00
Patrick Lühne 97d33da686 Added effect ID as a placeholder (for conditional effects) for consistency with unified output format. 2016-08-13 03:17:48 +02:00
Patrick Lühne 1f35bda3d2 Wrapped translated PDDL action definitions for usability in meta encodings. 2016-08-13 03:11:38 +02:00
Patrick Lühne 6960e8a8c7 Wrapped translated PDDL constant definitions for usability in meta encodings. 2016-08-13 03:09:14 +02:00
Patrick Lühne b30cecd297 Turning translated PDDL predicates into unified variable format in rest of output format. 2016-08-13 03:08:05 +02:00
Patrick Lühne 99fc6988a3 Renamed heading to »variables«. 2016-08-13 02:50:07 +02:00
Patrick Lühne cf022f9959 Started turning translated PDDL predicates into unified variable format. 2016-08-13 02:48:30 +02:00
Patrick Lühne 0a1044743e Renamed meta predicate for simplicity. 2016-08-13 02:33:28 +02:00
Patrick Lühne 94b204615b Wrapped translated PDDL type definitions for usability in meta encodings. 2016-08-13 02:32:27 +02:00
Patrick Lühne 230c6dfc15 Made order of sections of translated SAS more uniform with PDDL. 2016-08-13 02:29:48 +02:00
Patrick Lühne 378b2ae673 Wrapped translated SAS axiom rule definitions for usability in meta encodings. 2016-08-13 01:44:45 +02:00
Patrick Lühne 36e517bd80 Wrapped translated SAS mutex group definitions for usability in meta encodings. 2016-08-13 01:42:18 +02:00
Patrick Lühne 569b3d0c97 Wrapped translated SAS action definitions for usability in meta encodings. 2016-08-13 01:40:31 +02:00
Patrick Lühne daf68d24ab Added highlighting of variable names. 2016-08-13 01:39:49 +02:00
Patrick Lühne 8a82f52100 Wrapped translated SAS variable definitions for usability in meta encodings. 2016-08-13 01:36:08 +02:00
Patrick Lühne 544d4e0635 Major refactoring of underlying Parser class. 2016-08-02 20:33:49 +02:00
Patrick Lühne 73c9d6c1f3 Checking that Parser initially is case-sensitive. 2016-06-22 09:14:01 +01:00
Patrick Lühne 234938349c Fixed incorrect seek positions. 2016-06-22 08:59:18 +01:00
Patrick Lühne 9ed7277ec9 Fixed minor formatting issue with axiom rules. 2016-06-22 08:45:48 +01:00
Patrick Lühne d3039d55e5 Fixed typo in PDDL translation output. 2016-06-14 19:21:27 +02:00
Patrick Lühne 3d661cd1f4 Fixed unescaped ASP identifier. 2016-06-14 18:53:50 +02:00
Patrick Lühne 52fee6a4c1 Made the language command-line option lowercase for consistency. 2016-06-14 18:42:29 +02:00
Patrick Lühne eb3d91f085 Added command-line option to autodetect, enable, or disable color output. 2016-06-14 18:02:59 +02:00
Patrick Lühne aff396d919 Colorizing numbers in translated SAS output. 2016-06-14 17:41:41 +02:00
Patrick Lühne f7cd24b67a Colorized output for SAS translator. 2016-06-14 17:35:32 +02:00
Patrick Lühne 1e21457efb Refactored color output of headings. 2016-06-14 17:11:45 +02:00
Patrick Lühne 9969281b11 Refactored color output of variables and keywords. 2016-06-14 17:05:41 +02:00
Patrick Lühne 6fec1cc409 Made all error and warning messages lowercase consistently. 2016-06-14 16:53:48 +02:00
Patrick Lühne 2984da773d Fixed errors with gcc. 2016-06-14 16:47:11 +02:00
Patrick Lühne 1b83708a6d Colorized PDDL translator output. 2016-06-14 16:38:41 +02:00
Patrick Lühne 0de2489440 Using LogStreams in the PDDL translator. 2016-06-14 16:14:39 +02:00
Patrick Lühne fd5416c94e Removed template from LogStream. 2016-06-14 16:09:47 +02:00
Patrick Lühne febef4bed4 Made output and error streams members of the logger. 2016-06-14 15:56:35 +02:00
Patrick Lühne b599670572 Added LogStream class for uniform color output handling. 2016-06-14 15:53:53 +02:00
Patrick Lühne 57e9de6b05 Renamed method to »logWarning.« 2016-06-14 15:12:45 +02:00
Patrick Lühne 9679706a08 Removed ParserWarning class. 2016-06-14 15:09:39 +02:00
Patrick Lühne 777c9839a1 Removed error message prefixes. 2016-06-14 15:06:43 +02:00
Patrick Lühne a6c9434590 Fixed missing error message prefix. 2016-06-14 15:00:56 +02:00
Patrick Lühne fd77b65226 Merge branch 'master' of github.com:potassco/plasp into colored-output 2016-06-14 14:59:23 +02:00
Patrick Lühne a7cf696357 Minor formatting. 2016-06-14 14:18:38 +02:00
Patrick Lühne 94d448d438 Minor formatting. 2016-06-14 14:05:38 +02:00
Patrick Lühne c62f3f88f1 Handling untyped variables as variables of type »object« in PDDL translator for simplicity. 2016-06-14 13:53:09 +02:00
Patrick Lühne 39a32a6e0a Handling untyped variables correctly in the PDDL translator. 2016-06-14 13:21:41 +02:00
Patrick Lühne 342a346fce Started implementing colored output. 2016-06-14 12:47:39 +02:00
Patrick Lühne e0dd9833a3 Made unsupported expressions a separate type for disambiguation to fix issues with unsupported features. 2016-06-14 01:31:22 +02:00
Patrick Lühne 22f294493e Removed bloated translation feature support checks and replaced them with inline ones. 2016-06-13 19:20:00 +02:00
Patrick Lühne 4b500e4bf6 Implemented At expressions. 2016-06-13 19:02:15 +02:00
Patrick Lühne da85e5dd9b Checking whether variables have types before accessing them in the PDDL translator. 2016-06-13 16:37:35 +02:00
Patrick Lühne 2b55d156ae Fixed performance issue caused by skipping over unsupported sections multiple times. 2016-06-13 16:17:55 +02:00
Patrick Lühne 5c3ea28e48 Added command-line option for treating warnings as errors or completely ignoring them. 2016-06-13 14:45:31 +02:00
Patrick Lühne 2c3481d027 Initializing PDDL problem description only if available. 2016-06-13 13:37:18 +02:00
Patrick Lühne 421125fee6 Escaping PDDL identifiers for use with ASP. 2016-06-13 03:31:41 +02:00
Patrick Lühne 8563011939 Minor formatting. 2016-06-13 03:22:48 +02:00
Patrick Lühne e07672ffe6 Added transitive deduction of object types to PDDL translation. 2016-06-13 03:22:19 +02:00
Patrick Lühne 23f6f9b26b Added translation of a PDDL problem’s goal. 2016-06-13 03:19:24 +02:00
Patrick Lühne e9c464b319 Added translation of a PDDL problem’s initial state. 2016-06-13 02:59:43 +02:00
Patrick Lühne d3dc9101dd Added translation of objects in PDDL problems. 2016-06-13 02:48:16 +02:00
Patrick Lühne e018cdbc91 Added translation of effects of PDDL actions. 2016-06-13 02:41:23 +02:00
Patrick Lühne e2b8fd2880 Added translation for preconditions of PDDL actions. 2016-06-13 02:38:56 +02:00
Patrick Lühne 680206b40b Removed Reference expressions. 2016-06-13 01:38:56 +02:00
Patrick Lühne 1c8af793c2 Made PDDL action preconditions and effects optional. 2016-06-12 23:51:45 +02:00
Patrick Lühne 46351b2fe7 Ensuring that input contains only predicates, negations, and conjunctions for the time being. 2016-06-12 23:38:44 +02:00
Patrick Lühne 30cfa1b45e Fixes lambda issue with gcc. 2016-06-12 22:58:17 +02:00
Patrick Lühne 0756d63769 Put translation of PDDL variable lists into separate method. 2016-06-12 22:55:35 +02:00
Patrick Lühne 87ca54a253 Translating names of PDDL actions. 2016-06-12 22:47:39 +02:00
Patrick Lühne 9c2f49e4a0 Put PDDL translation sections into separate methods. 2016-06-12 22:39:04 +02:00
Patrick Lühne 49002ac52d Made output stream a member of the SAS translator for convenience. 2016-06-12 22:35:31 +02:00
Patrick Lühne b70e62ff3b Made output stream a member of the PDDL translator for convenience. 2016-06-12 22:31:31 +02:00
Patrick Lühne 046f803538 Implemented translation of PDDL predicates (with primitive types only). 2016-06-12 22:25:12 +02:00
Patrick Lühne 639b7646c9 Making sure that PDDL predicates contain only primitive types for the time being. 2016-06-12 22:19:55 +02:00
Patrick Lühne 89bb54a3ec Hiding translated PDDL sections if empty. 2016-06-12 22:19:24 +02:00
Patrick Lühne e9d48bcb7d Removing visitor pattern and replacing it with CRTP. 2016-06-12 22:12:09 +02:00
Patrick Lühne 0513b3aa0c Implemented translation of PDDL domain constants. 2016-06-10 17:52:19 +02:00
Patrick Lühne 458dbd723c Restructured translated PDDL type output. 2016-06-10 17:48:17 +02:00
Patrick Lühne 8f0f4bfa65 Implemented translation of PDDL domain types. 2016-06-10 17:40:32 +02:00
Patrick Lühne da71d4947b Added method for checking whether PDDL description contains problem. 2016-06-10 17:26:36 +02:00
Patrick Lühne 6a83147ac0 Moved TranslatorException class to utils directory. 2016-06-10 17:21:56 +02:00
Patrick Lühne 34a413cf05 Clarified error message. 2016-06-10 17:12:08 +02:00
Patrick Lühne 854ade5fa9 Ensuring input to contain only one SAS description. 2016-06-10 17:09:06 +02:00
Patrick Lühne 20b40d3e1c Allowing primitive type »objects« for compatibility. 2016-06-10 16:46:02 +02:00
Patrick Lühne 9f0e784a4a Implemented recognition of comments in PDDL. 2016-06-10 16:40:43 +02:00
Patrick Lühne eb5a120286 Fixed wrong comparison for language detection. 2016-06-10 01:25:51 +02:00
Patrick Lühne 2e1a011dcf Implemented automatic language detection for plasp application. 2016-06-10 01:23:41 +02:00
Patrick Lühne 8bb25e9b90 Implemented construction of SAS and PDDL Descriptions from Parser object. 2016-06-10 00:46:40 +02:00
Patrick Lühne dea879199a Removed debug output. 2016-06-09 23:26:00 +02:00
Patrick Lühne f8fc1865a2 Added to-do. 2016-06-09 22:55:16 +02:00
Patrick Lühne 85444f235b Parsing goal section of PDDL problem specifications. 2016-06-09 22:54:39 +02:00
Patrick Lühne d138e869fc Fixed further white space issue with empty n-ary predicates. 2016-06-09 18:46:06 +02:00
Patrick Lühne 156dfd88c2 Fixed issue with parsing unsupported sections. 2016-06-09 18:30:34 +02:00
Patrick Lühne 730a9b7e63 Fixed whitespace issues when parsing constants. 2016-06-09 18:26:04 +02:00
Patrick Lühne 6f1b38cdb7 Fixed parsing issue with predicates in problem description. 2016-06-09 18:04:24 +02:00
Patrick Lühne a8e4ef7234 Added missing implementation of facts accessor of InitialState. 2016-06-09 18:03:43 +02:00
Patrick Lühne c7405e054f Minor formatting. 2016-06-09 18:03:32 +02:00
Patrick Lühne 9506dcb31e Refactored parsing of expressions, all classes parse from opening to closing parenthesis now. 2016-06-09 17:51:10 +02:00
Patrick Lühne bbb6379907 Added goal-utilities requirement with a warning if used for compatibility. 2016-06-09 15:52:57 +02:00
Patrick Lühne 26d7e216a6 Fixed issue with invalid suffixes on section names. 2016-06-09 15:33:09 +02:00
Patrick Lühne 2245422d0f Made parser exception message more meaningful. 2016-06-09 15:18:36 +02:00
Patrick Lühne 87889f5efe Implemented two-pass parsing for PDDL problems. 2016-06-09 14:39:03 +02:00
Patrick Lühne 8428c20bd4 Parsing domains in two passes and continued working on parsing the initial state. 2016-06-09 01:25:18 +02:00
Patrick Lühne ff7a6b8c8f Removed unnecessary include. 2016-06-08 16:52:44 +02:00
Patrick Lühne d23ec14e9d Started testing PDDL problem parsing for a Blocks World problem. 2016-06-08 13:52:36 +02:00
Patrick Lühne ad23c89266 Refactored PDDL tests. 2016-06-08 13:41:17 +02:00
Patrick Lühne 1c8958ad9d Check that variables are not declared multiple times. 2016-06-08 13:35:10 +02:00
Patrick Lühne c99b7018c6 Checking that type declarations are not missing. 2016-06-08 13:34:41 +02:00
Patrick Lühne f2089f48b8 Fixed typo. 2016-06-08 12:56:50 +02:00
Patrick Lühne 75e51c856e Implemented early checking for typing requirement in Variables and Constants. 2016-06-08 12:51:39 +02:00
Patrick Lühne e60af33f75 Added functions for checking PDDL requirements. 2016-06-08 12:22:31 +02:00
Patrick Lühne 993d14d409 Implemented type requirement checking for problem objects. 2016-06-08 01:51:45 +02:00
Patrick Lühne bf0e636d57 Fixed PDDL problem header parsing. 2016-06-08 01:51:21 +02:00
Patrick Lühne 374ac3b07f Removed unneeded temporary object. 2016-06-08 01:44:06 +02:00
Patrick Lühne 183b0c954e Fixed debug output. 2016-06-08 01:41:21 +02:00
Patrick Lühne 42559fd601 Minor refactoring removing unnecessary temporary variable. 2016-06-08 01:31:14 +02:00
Patrick Lühne 069ad4ca99 To-dos and formatting. 2016-06-08 01:19:49 +02:00
Patrick Lühne 8db4b5a53e Implemented constant type checking. 2016-06-08 01:14:39 +02:00
Patrick Lühne 32883910bb Fixed typo. 2016-06-08 01:12:29 +02:00
Patrick Lühne 9b3f78559e Implemented primitive type declaration check. 2016-06-08 01:08:22 +02:00
Patrick Lühne 7bd2782fc8 Implemented variable type requirement checking. 2016-06-08 01:05:36 +02:00
Patrick Lühne 75fbb5fb48 Checking type requirement. 2016-06-08 00:48:33 +02:00
Patrick Lühne af2f9290c6 Removed obsolete functionality. 2016-06-08 00:36:48 +02:00
Patrick Lühne 31fb8ba79b Started parsing in a two-pass approach. 2016-06-08 00:34:59 +02:00
Patrick Lühne 9360f4295a Extracted function for skipping entire sections. 2016-06-08 00:13:53 +02:00
Patrick Lühne 69ff84eecc Added efficient probing functions to Parser. 2016-06-08 00:02:40 +02:00
Patrick Lühne eea3272c56 Made Parser seekable for easier maintenance. 2016-06-07 18:41:01 +02:00
Patrick Lühne 27e76fc035 Added check that typing requirement is not added by PDDL problem. 2016-06-07 16:34:15 +02:00
Patrick Lühne 188165bc4d Added fix for gcc. 2016-06-07 16:14:35 +02:00
Patrick Lühne e6ddad5960 Checking that all variables in predicates have types if and only if typing is enabled. 2016-06-07 16:11:12 +02:00
Patrick Lühne 4228ca01dc Implemented multi-file input. 2016-06-07 15:54:01 +02:00
Patrick Lühne c489c7fd5a Added tests for PDDL actions. 2016-06-07 14:00:29 +02:00
Patrick Lühne b612122180 Refactoring to make parsing expressions consistent across PDDL domains and problems. 2016-06-07 13:26:19 +02:00
Patrick Lühne d5fa00a4a4 Started parsing initial state and object sections. 2016-06-06 15:18:06 +02:00
Patrick Lühne e607ca4e8e Refactored PDDL parser to make all input case-insensitive. 2016-06-04 18:28:43 +02:00
Patrick Lühne d64c68f754 Improved error message. 2016-06-04 18:21:42 +02:00
Patrick Lühne e5bf7d754f Refactored expression parsing. 2016-06-04 18:12:41 +02:00
Patrick Lühne f8eab1cbb6 Removed unnecessary includes. 2016-06-04 18:07:57 +02:00
Patrick Lühne 0f2c81f894 Added to-dos. 2016-06-04 17:55:17 +02:00
Patrick Lühne e481732fae Started implementation of PDDL problem parser. 2016-06-04 17:53:42 +02:00
Patrick Lühne ee597c805e Added to-do. 2016-06-04 17:52:37 +02:00
Patrick Lühne e561c55f73 Made Action section parsing case-insensitive. 2016-06-04 17:51:21 +02:00
Patrick Lühne 2870bc6434 Made section identifier parsing case-insensitive. 2016-06-04 17:47:41 +02:00
Patrick Lühne 7e60631840 Refactored Requirement parsing. 2016-06-04 17:47:01 +02:00
Patrick Lühne f2a1528ea9 Fixed determination of default requirement (STRIPS). 2016-06-04 17:28:52 +02:00
Patrick Lühne 4ae37603f4 Added support for Imply expression. 2016-06-04 17:20:25 +02:00
Patrick Lühne 837612bb8d Made type warnings non-fatal by default. 2016-06-04 16:42:41 +02:00
Patrick Lühne 813fecbf15 Removed now unnecessary Parser function arguments. 2016-06-04 16:24:10 +02:00
Patrick Lühne a776fc9e06 Put Parser into Context. 2016-06-04 16:10:11 +02:00
Patrick Lühne 08eb14e400 Made section parsing function names consistent. 2016-06-04 15:07:18 +02:00
Patrick Lühne 60c072a2b3 Clean-up. 2016-06-04 15:06:04 +02:00