Fixed PDDL problem header parsing.

This commit is contained in:
Patrick Lühne 2016-06-08 01:51:21 +02:00
parent 374ac3b07f
commit bf0e636d57

View File

@ -31,6 +31,11 @@ Problem::Problem(Context &context, Domain &domain)
void Problem::readPDDL() void Problem::readPDDL()
{ {
m_context.parser.expect<std::string>("(");
m_context.parser.expect<std::string>("define");
m_context.parser.expect<std::string>("(");
m_context.parser.expect<std::string>("problem");
m_name = m_context.parser.parseIdentifier(isIdentifier); m_name = m_context.parser.parseIdentifier(isIdentifier);
std::cout << "Parsing problem " << m_name << std::endl; std::cout << "Parsing problem " << m_name << std::endl;