Closed asmwarrior closed 3 years ago
@asmwarrior, oops... You are completely right! I'll fix it.
Hi, there is still one issue in the next sample grammar after your fixed grammar.
peg::parser parser(R"(
ROOT <- ~_ ITEM (',' ~_ ITEM ~_)*
ITEM <- ([a-z])+
_ <- [ \t]*
)");
This should also be fixed.
Thanks!
In the home page of the github, I see this:
Please note that
([a-z])+
should be replaced by([a-z0-9])+
, otherwise, the test string" item1, item2 "
will get failed to parse.