From 3993130aabe55fadb4199780fadcbba4482c679e Mon Sep 17 00:00:00 2001 From: Ivan Raikov Date: Sat, 2 Oct 2021 16:58:01 -0700 Subject: [PATCH] doc update --- README.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 9978891..b1d2ff7 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ as arguments. ### Basic procedures -(seq MATCHER1 MATCHER2) => MATCHER + (seq MATCHER1 MATCHER2) => MATCHER `seq` builds a matcher that matches a sequence of patterns. @@ -47,17 +47,16 @@ to `*` in traditional regular expressions. ### Token procedure -(tok ) => (LAMBDA TOKEN PROC) => MATCHER +(tok TOKEN PROC) => MATCHER -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. (char CHAR) => MATCHER @@ -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]