Changeset 33940 in project


Ignore:
Timestamp:
04/05/17 07:03:38 (3 weeks ago)
Author:
iraikov
Message:

Summary: some more clarifications in internet-message doc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/internet-message

    r33939 r33940  
    4949</enscript>
    5050
    51 Once the instance of {{<InetMessage>}} is defined, the {{message}}
    52 procedure can be used to parse messages in the form of character
    53 lists:
     51Each procedure contained in the instance of {{<InetMessage>}} is a
     52parser combinator of the form {{(lambda (cont s) ...)}}, which takes a
     53continuation and input stream. For instance {{message}} parser
     54combinator can be used to parse messages:
    5455
    5556<enscript highlight="scheme">
     
    5758(define (string->input-stream s) `(() ,(string->list s)))
    5859
    59 ;; Used to report parse errors
     60;; A procedure used to report parse errors
    6061(define (err s)
    6162  (print "internet message error on stream: " s)
Note: See TracChangeset for help on using the changeset viewer.