Merge pull request #13 from g40/master

Fix a couple of typos in readme
pull/18/head
yhirose 9 years ago
commit bbd7699c81
  1. 8
      README.md

@ -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…
Cancel
Save