OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
ast_def.hpp
Go to the documentation of this file.
1 //
2 // Copyright & License: See Copyright.readme in src directory
3 //
4 
9 #ifndef AST_DEF_HPP_
10 #define AST_DEF_HPP_
11 
12 #include "ast.hpp"
13 
14 namespace SDDS { namespace parser
15 {
16 
17  template <typename Iterator, typename Skipper>
19  string::base_type(start)
20  {
21  qi::char_type char_;
22  qi::eol_type eol;
23  qi::lexeme_type lexeme;
24 
25  start %= lexeme[+(char_-eol)];
26  }
27 
28 
29  template <typename Iterator, typename Skipper>
31  qstring::base_type(start)
32  {
33  qi::char_type char_;
34  qi::eol_type eol;
35  qi::lexeme_type lexeme;
36 
37  start %= lexeme['"' >> +(char_ - (eol|'"')) >> '"']
38  | lexeme[+(char_ - (eol|' '))];
39  }
40 }}
41 
42 #endif // AST_DEF_HPP_
boost::spirit::qi::rule< Iterator, std::string(), Skipper > start
Definition: ast.hpp:74
boost::spirit::qi::rule< Iterator, std::string(), Skipper > start
Definition: ast.hpp:82