Skip to content

Commit

Permalink
doc update
Browse files Browse the repository at this point in the history
  • Loading branch information
iraikov committed Oct 2, 2021
1 parent 1818da4 commit 3993130
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ as arguments.

### Basic procedures

<procedure>(seq MATCHER1 MATCHER2) => MATCHER</procedure>
<procedure>(seq MATCHER1 MATCHER2) => MATCHER</procedure>

`seq` builds a matcher that matches a sequence of patterns.

Expand All @@ -47,17 +47,16 @@ to `*` in traditional regular expressions.

### Token procedure

<procedure>(tok <Input>) => (LAMBDA TOKEN PROC) => MATCHER</procedure>
<procedure>(tok TOKEN PROC) => MATCHER</procedure>

Procedure `tok` builds pattern matchers based on character
comparison operations. It is intended for matching input sequences of
arbitrary kinds, e.g. character lists, strings, or other kinds of
sequences.
Procedure `tok` builds pattern matchers based on character comparison
operations. It is intended for matching input sequences that are
SRFI-127 lazy streams.

For each stream given, `tok` applies a procedure to the given token
`TOKEN` and an input character. If the procedure returns a true
For each stream given, `tok` applies the procedure `PROC` to the given
token `TOKEN` and an input character. If the procedure returns a true
value, that value is prepended to the list of consumed elements, and
the input character is removed from the list of input elements.
the input character is removed from the stream of input elements.


<procedure>(char CHAR) => MATCHER</procedure>
Expand Down Expand Up @@ -221,7 +220,8 @@ procedure called when the pattern does not match anything.

## Version History

* 8.9 Ported to CHICKEN 5 and yasos collections interface
* 8.2 Removed yasos dependency [thanks to Noeal Cragg]
* 8.1 Ported to CHICKEN 5 and yasos collections interface
* 7.1 Bug fix in bind* [thanks to Peter Bex]
* 7.0 Added bind* and rebind* variants of bind and rebind [thanks to Peter Bex]
* 6.1-6.2 Corrected behavior of the tok combinator so that the failure continuation is invoked upon end-of-input [thanks to Chris Salch]
Expand Down

0 comments on commit 3993130

Please sign in to comment.