17 #ifndef INCLUDE_DEF_HPP_
18 #define INCLUDE_DEF_HPP_
22 #include <boost/spirit/include/phoenix_core.hpp>
23 #include <boost/spirit/include/phoenix_operator.hpp>
24 #include <boost/spirit/include/phoenix_fusion.hpp>
25 #include <boost/spirit/include/phoenix_bind.hpp>
27 namespace SDDS {
namespace parser
29 template <
typename Iterator>
36 typedef function<error_handler<Iterator> > error_handler_function;
40 qi::lexeme_type lexeme;
49 | lexeme[(
alpha |
'_') >> *(alnum |
'_')];
56 lit(
"&include")[_pass = complainInclude]
59 BOOST_SPIRIT_DEBUG_NODES(
64 error_handler_function(_error_handler)(
65 std::string(
"Error! Expecting "), _4, _3));
constexpr double alpha
The fine structure constant, no dimension.
qi::rule< Iterator, include(), skipper< Iterator > > start
include_parser(error_handler< Iterator > &_error_handler)
qi::rule< Iterator, std::string(), skipper< Iterator > > include_filename
qi::rule< Iterator, std::string(), skipper< Iterator > > quoted_string
qi::rule< Iterator, std::string(), skipper< Iterator > > string