9 #ifndef VERSION_DEF_HPP_
10 #define VERSION_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>
22 version_parser<Iterator>::version_parser(error_handler<Iterator> & _error_handler):
23 version_parser::base_type(start)
28 typedef function<error_handler<Iterator> > error_handler_function;
34 qi::short_type short_;
35 qi::no_skip_type no_skip;
38 start %= no_skip[lit(
"SDDS") > short_];
40 BOOST_SPIRIT_DEBUG_NODES(
45 error_handler_function(_error_handler)(
46 std::
string("Error! Expecting "), _4, _3));