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 09e599a commit c043814Copy full SHA for c043814
tests/test-grammar-integration.cpp
@@ -216,6 +216,30 @@ static void test_quantifiers() {
216
"aa",
217
"ba",
218
}
219
+ },
220
+ {
221
+ // Grammar
222
+ R"""(
223
+root ::= cons+ vowel* cons? (vowel cons)*
224
+vowel ::= [aeiouy]
225
+cons ::= [bcdfghjklmnpqrstvwxyz]
226
+)""",
227
+ // Passing strings
228
229
+ "yes",
230
+ "no",
231
+ "noyes",
232
+ "crwth",
233
+ "four",
234
+ "bryyyy",
235
236
+ // Failing strings
237
238
+ "yess",
239
+ "yesno",
240
+ "forty",
241
+ "catyyy",
242
+ }
243
244
};
245
0 commit comments