48 lines
1.1 KiB
C++
48 lines
1.1 KiB
C++
#include <plasp/pddl/expressions/Unsupported.h>
|
|
|
|
#include <plasp/pddl/Identifier.h>
|
|
#include <plasp/pddl/IO.h>
|
|
|
|
namespace plasp
|
|
{
|
|
namespace pddl
|
|
{
|
|
namespace expressions
|
|
{
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Unsupported
|
|
//
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
UnsupportedPointer Unsupported::parse(Context &context)
|
|
{
|
|
auto &parser = context.parser;
|
|
|
|
auto expression = std::make_unique<Unsupported>(Unsupported());
|
|
|
|
parser.expect<std::string>("(");
|
|
|
|
expression->m_type = parser.parseIdentifier(isIdentifier);
|
|
|
|
context.logger.logWarning(context.parser, "Expression type “" + expression->m_type + "” currently unsupported in this context");
|
|
|
|
skipSection(parser);
|
|
|
|
return expression;
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
const std::string &Unsupported::type() const
|
|
{
|
|
return m_type;
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
}
|
|
}
|
|
}
|