[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: master 930c578c104: ; Improvements to PEG documentation
From: |
Michael Heerdegen |
Subject: |
Re: master 930c578c104: ; Improvements to PEG documentation |
Date: |
Wed, 17 Apr 2024 04:38:18 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Hello Eric,
why do you use the term "lambda form" here?
| +@defun peg-run peg-matcher &optional failure-function success-function
| +This function accepts a single @var{peg-matcher}, which is the result of
| +calling @code{peg} (see below) on a named rule, usually the entry-point
| +of a larger grammar.
| +
| +At the end of parsing, one of @var{failure-function} or
| +@var{success-function} is called, depending on whether the parsing
| +succeeded or not. If @var{success-function} is called, it is passed a
| +lambda form that runs all the actions collected on the stack during
| +parsing -- by default this lambda form is simply executed.
AFAIU the function is just passed a function. An anonymous function
maybe, but certainly a function value, not a function form - so just
daily business - or do I miss something?
TIA,
Michael.