From 453cc053377f5e481f0d6eb15682896dde05d2b6 Mon Sep 17 00:00:00 2001 From: Eric Abrahamsen Date: Fri, 19 Apr 2024 16:26:36 -0700 Subject: [PATCH] ; Improve wording of manual entry for `peg-run' * 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 | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/doc/lispref/peg.texi b/doc/lispref/peg.texi index 72a7cacac20..b85d0de048d 100644 --- a/doc/lispref/peg.texi +++ b/doc/lispref/peg.texi @@ -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 -- 2.39.5