mirror of
https://github.com/yhirose/cpp-peglib.git
synced 2024-11-14 15:05:29 +00:00
Fix a couple of typos in readme
This commit is contained in:
parent
30da6961d4
commit
a34822aed6
@ -189,15 +189,15 @@ assert(ret == false);
|
||||
|
||||
```cpp
|
||||
parser["RULE"].before = [](any& dt) {
|
||||
std::cout << "before" << std::cout;
|
||||
std::cout << "before" << std::endl;
|
||||
};
|
||||
|
||||
parser["RULE"] = [](const SemanticValues& sv, any& dt) {
|
||||
std::cout << "action!" << std::cout;
|
||||
std::cout << "action!" << std::endl;
|
||||
};
|
||||
|
||||
parser["RULE"].after = [](any& dt) {
|
||||
std::cout << "after" << std::cout;
|
||||
std::cout << "after" << std::endl;
|
||||
};
|
||||
```
|
||||
|
||||
@ -355,7 +355,7 @@ The following are available operators:
|
||||
| tok | Token boundary |
|
||||
| ign | Ignore semantic value |
|
||||
| cap | Capture character |
|
||||
| usr | User defiend parser |
|
||||
| usr | User defined parser |
|
||||
|
||||
Adjust definitions
|
||||
------------------
|
||||
|
Loading…
Reference in New Issue
Block a user