Changeset 34626 in project


Ignore:
Timestamp:
09/20/17 11:50:48 (4 weeks ago)
Author:
LemonBoy
Message:

maybe supports an optional default parameter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/comparse

    r34248 r34626  
    273273
    274274
    275 <procedure>(maybe parser)</procedure>
     275<procedure>(maybe parser #!optional default)</procedure>
    276276
    277277Returns a parser which applies {{parser}} to the input and returns its
    278 result and remainder if it succeeds. Otherwise it returns {{#f}} as
    279 the parse result and the untouched input as the remainder.
     278result and remainder if it succeeds. Otherwise it returns {{default}} or {{#f}}
     279if not specified as the parse result and the untouched input as the remainder.
    280280
    281281
Note: See TracChangeset for help on using the changeset viewer.