Cleaning up debug message to make a bit more sense.
This commit is contained in:
parent
d24dabc99f
commit
4b54e71f4d
1 changed files with 2 additions and 2 deletions
|
@ -224,14 +224,14 @@ expr ::= term ("+" term)*
|
||||||
term ::= numero
|
term ::= numero
|
||||||
number ::= [0-9]+)""";
|
number ::= [0-9]+)""";
|
||||||
|
|
||||||
fprintf(stderr, "NOTE: Error message (\"parse: error parsing grammar: Undefined rule identifier 'numero'\") expected on following line during successful test:\n");
|
fprintf(stderr, "Expected error: ");
|
||||||
|
|
||||||
grammar_parser::parse_state parsed_grammar = grammar_parser::parse(grammar_str.c_str());
|
grammar_parser::parse_state parsed_grammar = grammar_parser::parse(grammar_str.c_str());
|
||||||
|
|
||||||
// Ensure we did NOT parsed correctly
|
// Ensure we did NOT parsed correctly
|
||||||
assert(parsed_grammar.rules.empty());
|
assert(parsed_grammar.rules.empty());
|
||||||
|
|
||||||
fprintf(stderr, "End of expected error message. Test successful.\n");
|
fprintf(stderr, "End of expected error. Test successful.\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue