Skip to content

Commit

Permalink
Merge pull request #361 from gitamohr/patch-2
Browse files Browse the repository at this point in the history
Small grammar/wording fix in Actions-and-States.md
  • Loading branch information
ColinH authored Apr 15, 2024
2 parents 3c6e0e0 + 7bc2bbe commit 68f4461
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/Actions-and-States.md
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ struct my_action< my_rule >
tao::pegtl::parse< my_grammar, my_action >( ... );
```

Conversely `tao::pegtl::change_action<>` takes a new action class template as only template parameter and changes the current action in a parsing run to its template parameter.
Conversely `tao::pegtl::change_action<>` takes a new action class template as its only template parameter and changes the current action in a parsing run to it.

Note that parsing proceeds with the rule to which the action changing action is attached to "as if" the new action had been the current action all along.
The new action can even perform an action change *on the same rule*, however care should be taken to not introduce infinite cycles of changes.
Expand Down

0 comments on commit 68f4461

Please sign in to comment.