mirror of
https://github.com/yhirose/cpp-peglib.git
synced 2025-01-22 21:35: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
|
```cpp
|
||||||
parser["RULE"].before = [](any& dt) {
|
parser["RULE"].before = [](any& dt) {
|
||||||
std::cout << "before" << std::cout;
|
std::cout << "before" << std::endl;
|
||||||
};
|
};
|
||||||
|
|
||||||
parser["RULE"] = [](const SemanticValues& sv, any& dt) {
|
parser["RULE"] = [](const SemanticValues& sv, any& dt) {
|
||||||
std::cout << "action!" << std::cout;
|
std::cout << "action!" << std::endl;
|
||||||
};
|
};
|
||||||
|
|
||||||
parser["RULE"].after = [](any& dt) {
|
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 |
|
| tok | Token boundary |
|
||||||
| ign | Ignore semantic value |
|
| ign | Ignore semantic value |
|
||||||
| cap | Capture character |
|
| cap | Capture character |
|
||||||
| usr | User defiend parser |
|
| usr | User defined parser |
|
||||||
|
|
||||||
Adjust definitions
|
Adjust definitions
|
||||||
------------------
|
------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user