Home
last modified time | relevance | path

Searched refs:token_def (Results 1 – 25 of 57) sorted by relevance

123

/third_party/boost/boost/spirit/home/lex/lexer/
Dtoken_def.hpp49 struct token_def struct
52 lex::reference<token_def<Attribute, Char, Idtype> const, Idtype>
54 , token_def<Attribute, Char, Idtype> >
55 , qi::parser<token_def<Attribute, Char, Idtype> >
56 , lex::lexer_type<token_def<Attribute, Char, Idtype> >
60 typedef lex::reference<token_def const, Idtype> reference_; argument
62 typedef proto::extends<terminal_type, token_def> proto_base_type; argument
170 token_def() in token_def() function
175 token_def(token_def const& rhs) in token_def() argument
180 explicit token_def(char_type def_, Idtype id_ = Idtype()) in token_def() function
[all …]
/third_party/boost/libs/spirit/test/lex/
Dlexertl5.cpp19 typedef lex::token_def<std::string> token_def; in main() typedef
45 token_def c_comment ("{CCOMMENT}", CCOMMENT); in main()
46 token_def cpp_comment ("{CPPCOMMENT}", CPPCOMMENT); in main()
47 token_def ws_tok ("{WS}"); in main()
55 lex.self += token_def(' ') | '\t' | ws_tok; in main()
77 token_def c_comment ("{CCOMMENT}", CCOMMENT); in main()
78 token_def cpp_comment ("{CPPCOMMENT}", CPPCOMMENT); in main()
79 token_def ws_tok ("{WS}"); in main()
Dlexertl3.cpp18 typedef lex::token_def<std::string> token_def; in main() typedef
22 token_def c_comment ("\\/\\*[^*]*\\*+([^/*][^*]*\\*+)*\\/", CCOMMENT); in main()
23 token_def cpp_comment ("\\/\\/[^\\n\\r]*(\\n|\\r|\\r\\n)", CPPCOMMENT); in main()
34 token_def ws_tok ("[\\v\\f\\n\\r]+"); in main()
38 lex.self += token_def(' ') | '\t' | ws_tok; in main()
53 token_def ws_tok ("[\\v\\f\\n\\r]+"); in main()
56 lex.self("WHITESPACE") = token_def(' ') | '\t' | ws_tok; in main()
Dlexertl4.cpp18 typedef lex::token_def<std::string> token_def; in main() typedef
26 token_def c_comment ("\\/\\*[^*]*\\*+([^/*][^*]*\\*+)*\\/", CCOMMENT); in main()
27 token_def cpp_comment ("\\/\\/[^\\n\\r]*(\\n|\\r|\\r\\n)", CPPCOMMENT); in main()
28 token_def ws_tok ("[\\v\\f\\n\\r]+", TOKEN_ID_WS); in main()
41 token_def ws_tok ("[\\v\\f\\n\\r]+", TOKEN_ID_WS); in main()
48 lex.self += token_def(' ') | '\t' | ws_tok; in main()
63 token_def ws_tok ("[\\v\\f\\n\\r]+", TOKEN_ID_WS); in main()
Dlexertl2.cpp18 typedef boost::spirit::lex::token_def<std::string> token_def; typedef
31 token_def c_comment, cpp_comment;
38 typedef boost::spirit::lex::token_def<std::basic_string<wchar_t>, wchar_t>
39 token_def; typedef
52 token_def c_comment, cpp_comment;
Dlexertl1.cpp21 typedef lex::token_def<std::string> token_def; in main() typedef
25 token_def c_comment ("\\/\\*[^*]*\\*+([^/*][^*]*\\*+)*\\/", CCOMMENT); in main()
26 token_def cpp_comment ("\\/\\/[^\\n\\r]*(\\n|\\r|\\r\\n)", CPPCOMMENT); in main()
59 lex.self = token_def('+') | '-' | c_comment; in main()
100 lex.self = token_def('+') | '-' | c_comment; in main()
Dregression_syntax_error.cpp46 lex::token_def<> ws;
47 lex::token_def<std::string> identifier;
48 lex::token_def<int> integer;
49 lex::token_def<double> real;
50 lex::token_def<> delimiter;
Dsemantic_actions.cpp33 lex::token_def<> identifier;
54 lex::token_def<> identifier;
75 lex::token_def<> identifier;
92 lex::token_def<> identifier;
109 lex::token_def<> identifier;
134 lex::token_def<> identifier;
157 lex::token_def<> identifier;
191 lex::token_def<> identifier;
Dregression_file_iterator4.cpp47 | lex::token_def<>("!.*$") [( in lexer()
51 | lex::token_def<>('\n', 2) [ in lexer()
57 lex::token_def<>(".") [( in lexer()
64 lex::token_def<> word;
Dregression_file_iterator2.cpp61 | lex::token_def<>(".", 3) [ in lexer()
70 | lex::token_def<>(".", 4) [( in lexer()
77 lex::token_def<identifier> id;
78 lex::token_def<string_literal> st;
Dregression_wide.cpp106 lex::token_def<wstring_type, wchar_t, tokenids> identifier;
107 lex::token_def<double, wchar_t, tokenids> constant;
108 lex::token_def<wchar_t, wchar_t, tokenids> operation;
109 lex::token_def<wchar_t, wchar_t, tokenids> bracket;
Dtoken_omit.cpp55 lex::token_def<lex::omit> int_;
56 lex::token_def<lex::omit> double_;
57 lex::token_def<lex::omit> whitespace;
93 lex::token_def<lex::omit> int_;
94 lex::token_def<lex::omit> double_;
95 lex::token_def<lex::omit> whitespace;
Dtoken_iterpair.cpp55 lex::token_def<lex::omit> int_;
56 lex::token_def<lex::omit> double_;
57 lex::token_def<lex::omit> whitespace;
93 lex::token_def<lex::omit> int_;
94 lex::token_def<lex::omit> double_;
95 lex::token_def<lex::omit> whitespace;
Dtoken_onetype.cpp57 lex::token_def<double> int_;
58 lex::token_def<double> double_;
59 lex::token_def<lex::omit> whitespace;
95 lex::token_def<double> int_;
96 lex::token_def<double> double_;
97 lex::token_def<lex::omit> whitespace;
Dregression_file_iterator1.cpp65 | lex::token_def<>(".", 3) [ lex::_state = "ST" ] in lexer()
69 lex::token_def<identifier> id;
70 lex::token_def<string_literal> st;
Dtoken_moretypes.cpp57 lex::token_def<int> int_;
58 lex::token_def<double> double_;
59 lex::token_def<lex::omit> whitespace;
95 lex::token_def<int> int_;
96 lex::token_def<double> double_;
97 lex::token_def<lex::omit> whitespace;
Dauto_switch_lexerstate.cpp50 | lex::token_def<>('\n', 2) in lexer()
60 lex::token_def<> word;
/third_party/boost/libs/spirit/example/lex/
Dlexer_debug_support.cpp36 lex::token_def<> tok_float, tok_int;
37 lex::token_def<> ws;
38 lex::token_def<double> floatlit;
39 lex::token_def<int> intlit;
40 lex::token_def<> identifier;
Dexample5.cpp60 this->self += lex::token_def<>('(') | ')' | '{' | '}' | '=' | ';' | constant; in init_token_definitions()
66 = lex::token_def<>("[ \\t\\n]+") in init_token_definitions()
72 lex::token_def<lex::omit> if_, while_;
87 lex::token_def<std::string> identifier;
88 lex::token_def<unsigned int> constant;
182 lex::token_def<lex::omit> else_;
Dexample4.cpp54 this->self = lex::token_def<>('(') | ')' | '{' | '}' | '=' | ';' | constant; in example4_tokens()
60 = lex::token_def<>("[ \\t\\n]+") in example4_tokens()
67 lex::token_def<> if_, else_, while_;
82 lex::token_def<std::string> identifier;
83 lex::token_def<unsigned int> constant;
Dexample6.cpp67 this->self = lex::token_def<>('(') | ')' | '{' | '}' | '=' | ';'; in example6_tokens()
84 = lex::token_def<>("[ \\t\\n]+") in example6_tokens()
102 lex::token_def<std::string> identifier;
103 lex::token_def<unsigned int> constant;
Dexample1.cpp54 lex::token_def<> identifier, white_space;
62 : qi::grammar<Iterator, qi::in_state_skipper<lex::token_def<> > >
71 qi::rule<Iterator, qi::in_state_skipper<lex::token_def<> > > start;
/third_party/boost/libs/spirit/example/lex/static_lexer/
Dword_count_tokens.hpp34 this->self = word | '\n' | boost::spirit::lex::token_def<>(".", IDANY); in word_count_tokens()
37 boost::spirit::lex::token_def<std::string> word;
/third_party/boost/libs/spirit/example/qi/compiler_tutorial/conjure2/
Dlexer.hpp119 lex::token_def<std::string> identifier;
120 lex::token_def<unsigned int> lit_uint;
121 lex::token_def<bool> true_or_false;
/third_party/boost/libs/spirit/example/qi/compiler_tutorial/conjure3/
Dlexer.hpp135 lex::token_def<std::string> identifier;
136 lex::token_def<unsigned int> lit_uint;
137 lex::token_def<bool> true_or_false;

123