Skip to content

Commit ed84bb7

Browse files
committed
Updated README
1 parent 17e069f commit ed84bb7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,15 +247,15 @@ assert(ret == false);
247247
*enter* and *leave* actions are also available.
248248
249249
```cpp
250-
parser["RULE"].enter = [](const char* s, size_t n, any& dt) {
250+
parser["RULE"].enter = [](const Context &c, const char* s, size_t n, any& dt) {
251251
std::cout << "enter" << std::endl;
252252
};
253253
254254
parser["RULE"] = [](const SemanticValues& vs, any& dt) {
255255
std::cout << "action!" << std::endl;
256256
};
257257
258-
parser["RULE"].leave = [](const char* s, size_t n, size_t matchlen, any& value, any& dt) {
258+
parser["RULE"].leave = [](const Context &c, const char* s, size_t n, size_t matchlen, any& value, any& dt) {
259259
std::cout << "leave" << std::endl;
260260
};
261261
```

0 commit comments

Comments
 (0)