Parse simple character sets in pattern rules

This commit is contained in:
Max Brunsfeld 2014-01-30 13:04:31 -08:00
parent 28e10dc722
commit 60e2d00b4d
6 changed files with 192 additions and 127 deletions

View file

@ -35,7 +35,7 @@ namespace test_grammars {
str("]"), }) },
{ "string", seq({
str("\""),
pattern("\\w+"),
repeat(pattern("[^\"]")),
str("\"") }) },
{ "number", pattern("\\d+") }
});