grammar: nit typo switched error msgs

This commit is contained in:
Olivier Chafik 2024-04-24 14:22:20 +01:00
parent d03c98ed9a
commit 21bac1e453

View file

@ -98,7 +98,7 @@ namespace grammar_parser {
pos++;
}
if (pos == src) {
throw std::runtime_error(std::string("expecting integer at ") + src);
throw std::runtime_error(std::string("expecting name at ") + src);
}
return pos;
}
@ -109,7 +109,7 @@ namespace grammar_parser {
pos++;
}
if (pos == src) {
throw std::runtime_error(std::string("expecting name at ") + src);
throw std::runtime_error(std::string("expecting integer at ") + src);
}
return pos;
}