Changeset 14700 in project


Ignore:
Timestamp:
05/19/09 05:13:14 (10 years ago)
Author:
Ivan Raikov
Message:

updated abnf doc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/abnf

    r14690 r14700  
    136136
    137137
     138==== Additional convenience procedures and parser combinators
     139
     140
     141<procedure>(set CHAR-SET) => MATCHER
     142
     143Matches any character from an SRFI-14 character set.
     144
     145<procedure>(set-from-string STRING) => MATCHER
     146
     147Matches any character from a set defined as a string.
     148
     149
     150<procedure>(bind F P) => MATCHER
     151
     152Given a rule {{P}} and function {{F}}, returns a matcher that first
     153applies {{P}} to the input stream, then applies {{F}} to the returned
     154list of consumed tokens, and returns the result and the remainder of
     155the input stream.
     156
     157<procedure>(drop P) => MATCHER
     158
     159Given a rule {{P}}, returns a matcher that always returns an empty
     160list of consumed tokens when {{P}} succeeds.
     161
     162)
     163
     164
    138165=== Examples
    139166
     
    145172=== Version History
    146173
     174* 1.2 Added procedures bind drop consume collect
     175* 1.1 Added procedures set and set-from-string
    147176* 1.0 Initial release
    148177
Note: See TracChangeset for help on using the changeset viewer.