forked from Veykril/tlborm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clarify the push-down accumulator example.
- Use brackets instead of parens in the push-down accumulator. - Don't use internal rules, especially given that it's now recommended against doing so for performance reasons. - Remove the `@as_expr` rule, it's not necessary. The final output can be produced directly from the `0` accumulator rule. - Reorder the rules so they are in the easiest-to-follow order. - Generally reformat to improve readability. I found this example hard to read when I first encountered it. I think these changes make it much easier to understand.
- Loading branch information
1 parent
d112f17
commit 2f13d95
Showing
1 changed file
with
29 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters