#include #include namespace plasp { namespace pddl { namespace expressions { //////////////////////////////////////////////////////////////////////////////////////////////////// // // Unsupported // //////////////////////////////////////////////////////////////////////////////////////////////////// UnsupportedPointer Unsupported::parse(Context &context) { auto &tokenizer = context.tokenizer; auto expression = UnsupportedPointer(new Unsupported); tokenizer.expect("("); expression->m_type = tokenizer.getIdentifier(); context.logger.log(output::Priority::Warning, tokenizer.location(), "expression type “" + expression->m_type + "” currently unsupported in this context"); skipSection(tokenizer); return expression; } //////////////////////////////////////////////////////////////////////////////////////////////////// const std::string &Unsupported::type() const { return m_type; } //////////////////////////////////////////////////////////////////////////////////////////////////// void Unsupported::print(std::ostream &ostream) const { // TODO: implement correctly ostream << "()"; } //////////////////////////////////////////////////////////////////////////////////////////////////// } } }