mirror of
https://github.com/yhirose/cpp-peglib.git
synced 2024-12-22 20:05:31 +00:00
Added more information about the ignore operator.
This commit is contained in:
parent
38ba5e1a5e
commit
36e58a6c7b
10
README.md
10
README.md
@ -156,6 +156,16 @@ parser["ROOT"] = [&](const SemanticValues& sv) {
|
||||
auto ret = parser.parse(" item1, item2 ");
|
||||
```
|
||||
|
||||
The following grammar is same as the above.
|
||||
|
||||
```c++
|
||||
peglib::peg parser(
|
||||
" ROOT <- ~_ ITEM (',' ~_ ITEM ~_)* "
|
||||
" ITEM <- ([a-z])+ "
|
||||
" _ <- [ \t]* "
|
||||
);
|
||||
```
|
||||
|
||||
Simple interface
|
||||
----------------
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user