chiark / gitweb /
Refactoring more or less complete. Maybe I should test it.
[sod] / src / parser / parser-proto.lisp
index f60e4254ecd3a80f4095b3f2bb7544249229790d..4242dfef0340cad9a94aef1a1770611c7677953c 100644 (file)
@@ -124,10 +124,6 @@ (defmacro defparse (name bvl &body body)
    body FORMs. The BVL is a destructuring lambda-list to be applied to the
    tail of the form.  The body forms are enclosed in a block called NAME.
 
-   Within the FORMs, a function `expand' is available: it takes a parser
-   specifier as its argument and returns its expansion in the parser's
-   context.
-
    If the :context key is provided, then the parser form is specialized on a
    particular class of parser contexts SPEC; specialized expanders take
    priority over less specialized or unspecialized expanders -- so you can
@@ -457,8 +453,7 @@ (defparse many ((acc init update
        (,func (lambda (,new)
                (declare (ignorable ,new))
                (setf ,accvar ,update))
-             (lambda ()
-               ,final)
+             (lambda () ,final)
              (parser () ,parser)
              ,@(and sepp (list `(parser () ,sep)))
              ,@(and minp `(:min ,min))