]> git.eshelyaron.com Git - emacs.git/commitdiff
; Improve wording of manual entry for `peg-run'
authorEric Abrahamsen <eric@ericabrahamsen.net>
Fri, 19 Apr 2024 23:26:36 +0000 (16:26 -0700)
committerEshel Yaron <me@eshelyaron.com>
Sat, 20 Apr 2024 11:09:32 +0000 (14:09 +0300)
* doc/lispref/peg.texi (Parsing Expression Grammars): "lambda form"
isn't really a meaningful term.  Prefer plain "function", though in this
case we've used "anonymous function" to avoid ambiguity.

(cherry picked from commit e5b4d4dd1bb4d568ed20cfb7354c5ff898af7a05)

doc/lispref/peg.texi

index 72a7cacac2008c02b5bd6f1833b873267567c092..b85d0de048dd2212cdc3e8963f7cf9d0cb83a33d 100644 (file)
@@ -78,12 +78,13 @@ 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.  If parsing
-fails, the @var{failure-function} is called with a list of @acronym{PEG}
-expressions that failed during parsing; by default this list is
-discarded.
+succeeded or not.  If @var{success-function} is provided, it should be a
+function that receives as its only argument an anonymous function that
+runs all the actions collected on the stack during parsing.  By default
+this anonymous function is simply executed.  If parsing fails, a
+function provided as @var{failure-function} will be called with a list
+of @acronym{PEG} expressions that failed during parsing.  By default
+this list is discarded.
 @end defun
 
 The @var{peg-matcher} passed to @code{peg-run} is produced by a call to