Started parsing initial state and object sections.

This commit is contained in:
2016-06-06 15:18:06 +02:00
parent e607ca4e8e
commit d5fa00a4a4
7 changed files with 107 additions and 7 deletions

View File

@@ -34,12 +34,16 @@ class Problem
bool hasRequirement(Requirement::Type requirementType) const;
void computeDerivedRequirements();
void parseObjectSection();
void checkConsistency();
Context &m_context;
std::string m_name;
Requirements m_requirements;
expressions::Constants m_objects;
};
////////////////////////////////////////////////////////////////////////////////////////////////////

View File

@@ -23,7 +23,7 @@ class Constant: public Expression
{
public:
static ConstantPointer parseDeclaration(Context &context);
static void parseTypedDeclaration(Context &context);
static void parseTypedDeclaration(Context &context, Constants &constants);
static Constant *parseExisting(Context &context);

View File

@@ -0,0 +1,27 @@
#ifndef __PLASP__PDDL__EXPRESSIONS__INITIAL_STATE_H
#define __PLASP__PDDL__EXPRESSIONS__INITIAL_STATE_H
#include <plasp/pddl/Expression.h>
namespace plasp
{
namespace pddl
{
namespace expressions
{
////////////////////////////////////////////////////////////////////////////////////////////////////
//
// Type
//
////////////////////////////////////////////////////////////////////////////////////////////////////
ExpressionPointer parseInitialState(Context &context);
////////////////////////////////////////////////////////////////////////////////////////////////////
}
}
}
#endif