Skip to content

Commit

Permalink
wrap paragraph
Browse files Browse the repository at this point in the history
  • Loading branch information
jolmg committed Sep 15, 2020
1 parent afe83b9 commit 84495d3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,12 @@ them with `BackedIO` to give the `IO` the ability to backtrack.

## Defining combinators

If you look at the examples in this source, you'll notice that all combinators are defined with `define_combinator`. Strictly speaking, it's not necessary to use that to define combinators. You can do it with variable assignment or `def` syntax. Nevertheless, `define_combinator` is preferred because it automates the assignment of a label to the combinator. Consider these examples:
If you look at the examples in this source, you'll notice that all
combinators are defined with `define_combinator`. Strictly speaking, it's
not necessary to use that to define combinators. You can do it with
variable assignment or `def` syntax. Nevertheless, `define_combinator` is
preferred because it automates the assignment of a label to the combinator.
Consider these examples:

```ruby
define_combinator :between do |left, right, p|
Expand Down

0 comments on commit 84495d3

Please sign in to comment.