Lines Matching defs:parser
40 #include "atf-c++/detail/parser.hpp"
65 // The "atf_tps" auxiliary parser.
70 static const atf::parser::token_type eof_type = 0;
71 static const atf::parser::token_type nl_type = 1;
72 static const atf::parser::token_type text_type = 2;
73 static const atf::parser::token_type colon_type = 3;
74 static const atf::parser::token_type comma_type = 4;
75 static const atf::parser::token_type tps_count_type = 5;
76 static const atf::parser::token_type tp_start_type = 6;
77 static const atf::parser::token_type tp_end_type = 7;
78 static const atf::parser::token_type tc_start_type = 8;
79 static const atf::parser::token_type tc_so_type = 9;
80 static const atf::parser::token_type tc_se_type = 10;
81 static const atf::parser::token_type tc_end_type = 11;
82 static const atf::parser::token_type passed_type = 12;
83 static const atf::parser::token_type failed_type = 13;
84 static const atf::parser::token_type skipped_type = 14;
85 static const atf::parser::token_type info_type = 16;
86 static const atf::parser::token_type expected_death_type = 17;
87 static const atf::parser::token_type expected_exit_type = 18;
88 static const atf::parser::token_type expected_failure_type = 19;
89 static const atf::parser::token_type expected_signal_type = 20;
90 static const atf::parser::token_type expected_timeout_type = 21;
92 class tokenizer : public atf::parser::tokenizer< std::istream > {
95 atf::parser::tokenizer< std::istream >
122 read_timeval(atf::parser::parser< atf_tps::tokenizer >& parser)
126 atf::parser::token t = parser.expect(text_type, "timestamp");
130 throw atf::parser::parse_error(t.lineno(),
212 using atf::parser::parse_error;
215 atf::parser::parser< tokenizer >& p =
216 *reinterpret_cast< atf::parser::parser< tokenizer >* >
221 atf::parser::token t = p.expect(text_type, "info property name");
231 using atf::parser::parse_error;
234 atf::parser::parser< tokenizer >& p =
235 *reinterpret_cast< atf::parser::parser< tokenizer >* >
238 atf::parser::token t = p.expect(tp_start_type,
303 using atf::parser::parse_error;
306 atf::parser::parser< tokenizer >& p =
307 *reinterpret_cast< atf::parser::parser< tokenizer >* >
310 atf::parser::token t = p.expect(tc_start_type, "start of test case");
329 atf::parser::token t2 = t;
396 using atf::parser::parse_error;
399 std::pair< size_t, atf::parser::headers_map > hml =
400 atf::parser::read_headers(m_is, 1);
401 atf::parser::validate_content_type(hml.second, "application/X-atf-tps", 3);
404 atf::parser::parser< tokenizer > p(tkz);
407 atf::parser::token t;