Lines Matching defs:parser

41 #include "parser.hpp"
64 // The "atf_tps" auxiliary parser.
69 static const tools::parser::token_type eof_type = 0;
70 static const tools::parser::token_type nl_type = 1;
71 static const tools::parser::token_type text_type = 2;
72 static const tools::parser::token_type colon_type = 3;
73 static const tools::parser::token_type comma_type = 4;
74 static const tools::parser::token_type tps_count_type = 5;
75 static const tools::parser::token_type tp_start_type = 6;
76 static const tools::parser::token_type tp_end_type = 7;
77 static const tools::parser::token_type tc_start_type = 8;
78 static const tools::parser::token_type tc_so_type = 9;
79 static const tools::parser::token_type tc_se_type = 10;
80 static const tools::parser::token_type tc_end_type = 11;
81 static const tools::parser::token_type passed_type = 12;
82 static const tools::parser::token_type failed_type = 13;
83 static const tools::parser::token_type skipped_type = 14;
84 static const tools::parser::token_type info_type = 16;
85 static const tools::parser::token_type expected_death_type = 17;
86 static const tools::parser::token_type expected_exit_type = 18;
87 static const tools::parser::token_type expected_failure_type = 19;
88 static const tools::parser::token_type expected_signal_type = 20;
89 static const tools::parser::token_type expected_timeout_type = 21;
91 class tokenizer : public tools::parser::tokenizer< std::istream > {
94 tools::parser::tokenizer< std::istream >
121 read_timeval(tools::parser::parser< atf_tps::tokenizer >& parser)
125 tools::parser::token t = parser.expect(text_type, "timestamp");
129 throw tools::parser::parse_error(t.lineno(),
211 using tools::parser::parse_error;
214 tools::parser::parser< tokenizer >& p =
215 *reinterpret_cast< tools::parser::parser< tokenizer >* >
220 tools::parser::token t = p.expect(text_type, "info property name");
230 using tools::parser::parse_error;
233 tools::parser::parser< tokenizer >& p =
234 *reinterpret_cast< tools::parser::parser< tokenizer >* >
237 tools::parser::token t = p.expect(tp_start_type,
302 using tools::parser::parse_error;
305 tools::parser::parser< tokenizer >& p =
306 *reinterpret_cast< tools::parser::parser< tokenizer >* >
309 tools::parser::token t = p.expect(tc_start_type, "start of test case");
328 tools::parser::token t2 = t;
395 using tools::parser::parse_error;
398 std::pair< size_t, tools::parser::headers_map > hml =
399 tools::parser::read_headers(m_is, 1);
400 tools::parser::validate_content_type(hml.second,
404 tools::parser::parser< tokenizer > p(tkz);
407 tools::parser::token t;