Skip to content

Commit

Permalink
Small grammar/wording fix in Actions-and-States.md
Browse files Browse the repository at this point in the history
  • Loading branch information
gitamohr authored Apr 15, 2024
1 parent 3c6e0e0 commit 7bc2bbe
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 7bc2bbe

Please sign in to comment.