Parse simple character sets in pattern rules
This commit is contained in:
parent
28e10dc722
commit
60e2d00b4d
6 changed files with 192 additions and 127 deletions
2
spec/fixtures/grammars/json.cpp
vendored
2
spec/fixtures/grammars/json.cpp
vendored
|
|
@ -35,7 +35,7 @@ namespace test_grammars {
|
|||
str("]"), }) },
|
||||
{ "string", seq({
|
||||
str("\""),
|
||||
pattern("\\w+"),
|
||||
repeat(pattern("[^\"]")),
|
||||
str("\"") }) },
|
||||
{ "number", pattern("\\d+") }
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue