9 #ifndef INCLUDE_DEF_HPP_
10 #define INCLUDE_DEF_HPP_
14 #include <boost/spirit/include/phoenix_core.hpp>
15 #include <boost/spirit/include/phoenix_operator.hpp>
16 #include <boost/spirit/include/phoenix_fusion.hpp>
17 #include <boost/spirit/include/phoenix_bind.hpp>
19 namespace SDDS {
namespace parser
21 template <
typename Iterator>
28 typedef function<error_handler<Iterator> > error_handler_function;
32 qi::lexeme_type lexeme;
41 | lexeme[(alpha |
'_') >> *(alnum |
'_')];
48 lit(
"&include")[_pass = complainInclude]
51 BOOST_SPIRIT_DEBUG_NODES(
56 error_handler_function(_error_handler)(
57 std::string(
"Error! Expecting "), _4, _3));
constexpr double alpha
The fine structure constant, no dimension.
qi::rule< Iterator, std::string(), skipper< Iterator > > string
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