Home | History | Annotate | Download | only in expectations

Lines Matching refs:Parser

5 #include "base/test/expectations/parser.h"
11 Parser::Parser(Delegate* delegate, const std::string& input)
20 Parser::~Parser() {
23 void Parser::Parse() {
29 StateFuncPtr state = &Parser::Start;
35 inline bool Parser::HasNext() {
39 Parser::StateFunc Parser::Start() {
43 return SkipWhitespaceAndNewLines(&Parser::Start);
47 return &Parser::ParseComment;
50 // the parser may be at the end of the input.
57 return &Parser::ParseBugURL;
60 Parser::StateFunc Parser::ParseComment() {
68 return &Parser::Start;
71 Parser::StateFunc Parser::ParseBugURL() {
73 &Parser::BeginModifiers));
76 Parser::StateFunc Parser::BeginModifiers() {
81 return SkipWhitespace(&Parser::InModifiers);
84 Parser::StateFunc Parser::InModifiers() {
86 return &Parser::EndModifiers;
89 &Parser::SaveModifier));
92 Parser::StateFunc Parser::SaveModifier() {
110 return SkipWhitespace(&Parser::InModifiers);
113 Parser::StateFunc Parser::EndModifiers() {
118 return SkipWhitespace(&Parser::ParseTestName);
121 Parser::StateFunc Parser::ParseTestName() {
122 return ExtractString(&Parser::SaveTestName);
125 Parser::StateFunc Parser::SaveTestName() {
130 return SkipWhitespace(&Parser::ParseExpectation);
133 Parser::StateFunc Parser::ParseExpectation() {
138 return SkipWhitespace(&Parser::ParseExpectationType);
141 Parser::StateFunc Parser::ParseExpectationType() {
142 return ExtractString(&Parser::SaveExpectationType);
145 Parser::StateFunc Parser::SaveExpectationType() {
149 return SkipWhitespace(&Parser::End);
152 Parser::StateFunc Parser::End() {
157 return SkipWhitespaceAndNewLines(&Parser::Start);
162 Parser::StateFunc Parser::ExtractString(StateFunc success) {
174 Parser::StateFunc Parser::SkipWhitespace(Parser::StateFunc next) {
181 Parser::StateFunc Parser::SkipWhitespaceAndNewLines(Parser::StateFunc next) {
191 Parser::StateFunc Parser::SyntaxError(const std::string& message) {
196 void Parser::DataError(const std::string& error) {