Commit Graph
100 Commits
Author SHA1 Message Date
patrick 89bb54a3ec Hiding translated PDDL sections if empty. 2016-06-12 22:19:24 +02:00
patrick 979d9509c1 Added function for escaping ASP variables. 2016-06-12 22:12:43 +02:00
patrick e9d48bcb7d Removing visitor pattern and replacing it with CRTP. 2016-06-12 22:12:09 +02:00
patrick 318bd8297c Disambiguation of parser and translation errors in plasp binary. 2016-06-12 22:09:47 +02:00
patrick 0513b3aa0c Implemented translation of PDDL domain constants. 2016-06-10 17:52:19 +02:00
patrick 458dbd723c Restructured translated PDDL type output. 2016-06-10 17:48:17 +02:00
patrick 8f0f4bfa65 Implemented translation of PDDL domain types. 2016-06-10 17:40:32 +02:00
patrick da71d4947b Added method for checking whether PDDL description contains problem. 2016-06-10 17:26:36 +02:00
patrick 6a83147ac0 Moved TranslatorException class to utils directory. 2016-06-10 17:21:56 +02:00
patrick f6cfc55e21 Put exception handling back into plasp binary for convenient use. 2016-06-10 17:12:23 +02:00
patrick 34a413cf05 Clarified error message. 2016-06-10 17:12:08 +02:00
patrick 854ade5fa9 Ensuring input to contain only one SAS description. 2016-06-10 17:09:06 +02:00
patrick be09230410 Added test for PDDL comment parsing. 2016-06-10 16:50:08 +02:00
patrick 20b40d3e1c Allowing primitive type »objects« for compatibility. 2016-06-10 16:46:02 +02:00
patrick 9f0e784a4a Implemented recognition of comments in PDDL. 2016-06-10 16:40:43 +02:00
patrick 168fcc874e Added PDDL-related changes to change log. 2016-06-10 01:30:30 +02:00
patrick d446c192cf Made plasp’s help message more precise. 2016-06-10 01:28:13 +02:00
patrick eb5a120286 Fixed wrong comparison for language detection. 2016-06-10 01:25:51 +02:00
patrick 2e1a011dcf Implemented automatic language detection for plasp application. 2016-06-10 01:23:41 +02:00
patrick 8ef874eb22 Simplified plasp application by initializing parser externally. 2016-06-10 00:59:44 +02:00
patrick c6dc84f27f Removed now unnecessary check for number of files with SAS parser. 2016-06-10 00:51:31 +02:00
patrick 8bb25e9b90 Implemented construction of SAS and PDDL Descriptions from Parser object. 2016-06-10 00:46:40 +02:00
patrick c6bdfe3f38 Renamed issue checking test. 2016-06-09 23:35:57 +02:00
patrick d1063b345d Renamed error detection tests. 2016-06-09 23:31:12 +02:00
patrick dea879199a Removed debug output. 2016-06-09 23:26:00 +02:00
patrick 9a034cb556 Testing goal for Storage problem. 2016-06-09 23:21:05 +02:00
patrick 5cd22d284b Testing goal for Blocks World problem. 2016-06-09 23:19:20 +02:00
patrick f8fc1865a2 Added to-do. 2016-06-09 22:55:16 +02:00
patrick 85444f235b Parsing goal section of PDDL problem specifications. 2016-06-09 22:54:39 +02:00
patrick 15061f75a9 Added test covering last issue. 2016-06-09 18:48:16 +02:00
patrick d138e869fc Fixed further white space issue with empty n-ary predicates. 2016-06-09 18:46:06 +02:00
patrick 23170e170a Added test covering last two issues. 2016-06-09 18:32:55 +02:00
patrick 156dfd88c2 Fixed issue with parsing unsupported sections. 2016-06-09 18:30:34 +02:00
patrick 730a9b7e63 Fixed whitespace issues when parsing constants. 2016-06-09 18:26:04 +02:00
patrick 3041b6a278 Testing initial state for Storage problem. 2016-06-09 18:16:51 +02:00
patrick 2da5be548a Testing initial state for Blocks World problem. 2016-06-09 18:13:19 +02:00
patrick 6f1b38cdb7 Fixed parsing issue with predicates in problem description. 2016-06-09 18:04:24 +02:00
patrick a8e4ef7234 Added missing implementation of facts accessor of InitialState. 2016-06-09 18:03:43 +02:00
patrick c7405e054f Minor formatting. 2016-06-09 18:03:32 +02:00
patrick 9506dcb31e Refactored parsing of expressions, all classes parse from opening to closing parenthesis now. 2016-06-09 17:51:10 +02:00
patrick 04aac10f1d Allowing empty and expressions for compatibility and added a warning if used. 2016-06-09 15:56:14 +02:00
patrick bbb6379907 Added goal-utilities requirement with a warning if used for compatibility. 2016-06-09 15:52:57 +02:00
patrick 26d7e216a6 Fixed issue with invalid suffixes on section names. 2016-06-09 15:33:09 +02:00
patrick d629f50661 Added many PDDL syntax error tests. 2016-06-09 15:19:01 +02:00
patrick 2245422d0f Made parser exception message more meaningful. 2016-06-09 15:18:36 +02:00
patrick 87889f5efe Implemented two-pass parsing for PDDL problems. 2016-06-09 14:39:03 +02:00
patrick fb15a131ac Enabling tests by default. 2016-06-09 01:25:50 +02:00
patrick 8428c20bd4 Parsing domains in two passes and continued working on parsing the initial state. 2016-06-09 01:25:18 +02:00
patrick ff7a6b8c8f Removed unnecessary include. 2016-06-08 16:52:44 +02:00
patrick d92a3e9239 Started testing PDDL problem parsing for a Storage problem. 2016-06-08 13:57:01 +02:00
patrick d23ec14e9d Started testing PDDL problem parsing for a Blocks World problem. 2016-06-08 13:52:36 +02:00
patrick ad23c89266 Refactored PDDL tests. 2016-06-08 13:41:17 +02:00
patrick 1c8958ad9d Check that variables are not declared multiple times. 2016-06-08 13:35:10 +02:00
patrick c99b7018c6 Checking that type declarations are not missing. 2016-06-08 13:34:41 +02:00
patrick f2089f48b8 Fixed typo. 2016-06-08 12:56:50 +02:00
patrick 75e51c856e Implemented early checking for typing requirement in Variables and Constants. 2016-06-08 12:51:39 +02:00
patrick e60af33f75 Added functions for checking PDDL requirements. 2016-06-08 12:22:31 +02:00
patrick 993d14d409 Implemented type requirement checking for problem objects. 2016-06-08 01:51:45 +02:00
patrick bf0e636d57 Fixed PDDL problem header parsing. 2016-06-08 01:51:21 +02:00
patrick 374ac3b07f Removed unneeded temporary object. 2016-06-08 01:44:06 +02:00
patrick 183b0c954e Fixed debug output. 2016-06-08 01:41:21 +02:00
patrick 42559fd601 Minor refactoring removing unnecessary temporary variable. 2016-06-08 01:31:14 +02:00
patrick 069ad4ca99 To-dos and formatting. 2016-06-08 01:19:49 +02:00
patrick 8db4b5a53e Implemented constant type checking. 2016-06-08 01:14:39 +02:00
patrick 32883910bb Fixed typo. 2016-06-08 01:12:29 +02:00
patrick 9b3f78559e Implemented primitive type declaration check. 2016-06-08 01:08:22 +02:00
patrick 7bd2782fc8 Implemented variable type requirement checking. 2016-06-08 01:05:36 +02:00
patrick 75fbb5fb48 Checking type requirement. 2016-06-08 00:48:33 +02:00
patrick af2f9290c6 Removed obsolete functionality. 2016-06-08 00:36:48 +02:00
patrick 31fb8ba79b Started parsing in a two-pass approach. 2016-06-08 00:34:59 +02:00
patrick ee9626e4d2 Made the section skipping function a proper function. 2016-06-08 00:14:43 +02:00
patrick 9360f4295a Extracted function for skipping entire sections. 2016-06-08 00:13:53 +02:00
patrick abfa3b3ca1 Added -Wextra compiler flag. 2016-06-08 00:13:07 +02:00
patrick a1b93624d6 Fixed accepting std::cin input when omitting input file arguments. 2016-06-08 00:06:54 +02:00
patrick 69ff84eecc Added efficient probing functions to Parser. 2016-06-08 00:02:40 +02:00
patrick 78889e18c6 Fixed accidentally removed std::cin support. 2016-06-07 23:31:09 +02:00
patrick fa178d5ee1 Fixed SAS file input bug. 2016-06-07 20:59:02 +02:00
patrick eea3272c56 Made Parser seekable for easier maintenance. 2016-06-07 18:41:01 +02:00
patrick 27e76fc035 Added check that typing requirement is not added by PDDL problem. 2016-06-07 16:34:15 +02:00
patrick 188165bc4d Added fix for gcc. 2016-06-07 16:14:35 +02:00
patrick 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 4228ca01dc Implemented multi-file input. 2016-06-07 15:54:01 +02:00
patrick 64190ba55a Added more tests for PDDL actions. 2016-06-07 14:07:17 +02:00
patrick c489c7fd5a Added tests for PDDL actions. 2016-06-07 14:00:29 +02:00
patrick acc063822e Minor formatting in PDDL parser tests. 2016-06-07 13:40:01 +02:00
patrick b612122180 Refactoring to make parsing expressions consistent across PDDL domains and problems. 2016-06-07 13:26:19 +02:00
patrick d5fa00a4a4 Started parsing initial state and object sections. 2016-06-06 15:18:06 +02:00
patrick e607ca4e8e Refactored PDDL parser to make all input case-insensitive. 2016-06-04 18:28:43 +02:00
patrick d64c68f754 Improved error message. 2016-06-04 18:21:42 +02:00
patrick e5bf7d754f Refactored expression parsing. 2016-06-04 18:12:41 +02:00
patrick 0e739755b7 Making References transparent by forwarding visitors to their referee. 2016-06-04 18:08:34 +02:00
patrick f8eab1cbb6 Removed unnecessary includes. 2016-06-04 18:07:57 +02:00
patrick 0f2c81f894 Added to-dos. 2016-06-04 17:55:17 +02:00
patrick e481732fae Started implementation of PDDL problem parser. 2016-06-04 17:53:42 +02:00
patrick ee597c805e Added to-do. 2016-06-04 17:52:37 +02:00
patrick e561c55f73 Made Action section parsing case-insensitive. 2016-06-04 17:51:21 +02:00
patrick 2870bc6434 Made section identifier parsing case-insensitive. 2016-06-04 17:47:41 +02:00
patrick 7e60631840 Refactored Requirement parsing. 2016-06-04 17:47:01 +02:00
patrick f2a1528ea9 Fixed determination of default requirement (STRIPS). 2016-06-04 17:28:52 +02:00
patrick 21af7e9983 Removed unnecessary include. 2016-06-04 17:22:57 +02:00