knowrob  2.1.0
A Knowledge Base System for Cognition-enabled Robots
formula.h
Go to the documentation of this file.
1 /*
2  * This file is part of KnowRob, please consult
3  * https://github.com/knowrob/knowrob for license details.
4  */
5 
6 #ifndef KNOWROB_FORMULA_PARSERS_H
7 #define KNOWROB_FORMULA_PARSERS_H
8 
9 #include <boost/spirit/include/qi.hpp>
10 #include "knowrob/formulas/Formula.h"
11 #include "knowrob/formulas/Predicate.h"
12 
13 namespace knowrob::parsers::formula {
14  using FormulaRule = boost::spirit::qi::rule<std::string::const_iterator, std::shared_ptr<Formula>(), boost::spirit::ascii::space_type>;
15  using PredicateRule = boost::spirit::qi::rule<std::string::const_iterator, std::shared_ptr<Predicate>(), boost::spirit::ascii::space_type>;
16 
21 
26 }
27 
28 #endif //KNOWROB_FORMULA_PARSERS_H
boost::spirit::qi::rule< std::string::const_iterator, std::shared_ptr< Predicate >(), boost::spirit::ascii::space_type > PredicateRule
Definition: formula.h:15
PredicateRule & predicate()
Definition: formula.cpp:221
boost::spirit::qi::rule< std::string::const_iterator, std::shared_ptr< Formula >(), boost::spirit::ascii::space_type > FormulaRule
Definition: formula.h:14
FormulaRule & formula()
Definition: formula.cpp:283