We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de0fd3f commit 3f76f4cCopy full SHA for 3f76f4c
common/grammar-parser.cpp
@@ -98,7 +98,7 @@ namespace grammar_parser {
98
pos++;
99
}
100
if (pos == src) {
101
- throw std::runtime_error(std::string("expecting name at ") + src);
+ throw std::runtime_error(std::string("expecting integer at ") + src);
102
103
return pos;
104
@@ -159,6 +159,8 @@ namespace grammar_parser {
159
throw std::runtime_error(std::string("expecting preceding item to */+/?/{ at ") + pos);
160
161
162
+ // apply transformation to previous symbol (last_sym_start to end) according to
163
+ // the following rewrite rules:
164
// S* --> S{0,}
165
// S+ --> S{1,}
166
// S? --> S{0,1}
0 commit comments