Changeset 15974 in project


Ignore:
Timestamp:
09/20/09 05:03:17 (10 years ago)
Author:
Ivan Raikov
Message:

updated abnf and lexgen doc

Location:
wiki/eggref/4
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/abnf

    r15786 r15974  
    298298=== Version History
    299299
     300* 2.4 Moved the definition of bind and drop to lexgen
    300301* 2.2 Added pass combinator
    301302* 2.1 Added procedure variable-repetition
  • wiki/eggref/4/lexgen

    r15781 r15974  
    8989Matches a literal string {{s}}.
    9090
     91<procedure>(bind F P) => MATCHER
     92
     93Given a rule {{P}} and function {{F}}, returns a matcher that first
     94applies {{P}} to the input stream, then applies {{F}} to the returned
     95list of consumed tokens, and returns the result and the remainder of
     96the input stream.
     97
     98<procedure>(drop P) => MATCHER
     99
     100Given a rule {{P}}, returns a matcher that always returns an empty
     101list of consumed tokens when {{P}} succeeds.
    91102
    92103==== Lexer procedures
     
    136147=== Version History
    137148
     149* 2.6 Added bind and drop combinators
    138150* 2.5 The seq combinator checks whether the first parser in the sequence has failed
    139151* 2.4 Added (require-library srfi-1); using lset<= instead of equal? in star
Note: See TracChangeset for help on using the changeset viewer.