Update common/grammar-parser.cpp
Co-authored-by: Clint Herron <hanclinto@gmail.com>
This commit is contained in:
parent
9d8efa545f
commit
2d98ebf0f7
1 changed files with 1 additions and 1 deletions
|
@ -296,7 +296,7 @@ namespace grammar_parser {
|
|||
pos = parse_space(pos + 1, is_nested);
|
||||
|
||||
if (!is_digit_char(*pos)) {
|
||||
throw std::runtime_error(std::string("expecting an int or ',' at ") + pos);
|
||||
throw std::runtime_error(std::string("expecting an int at ") + pos);
|
||||
}
|
||||
const char * int_end = parse_int(pos);
|
||||
int min_times = std::stoul(std::string(pos, int_end - pos));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue