1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-07-10 11:20:28 +02:00

Fix typo in the (system base lalr) documentation.

* doc/ref/api-lalr.texi (LALR(1) Parsing): "The tokenizer should be a
  unary procedure" -> "thunk".  Patch by Noah Lavine
  <noah.b.lavine@gmail.com>.
This commit is contained in:
Ludovic Courtès 2010-10-28 00:03:54 +02:00
parent 5efcd34d71
commit 01a4f0aae5

View file

@ -25,12 +25,12 @@ Each rule has the form @code{(@var{non-terminal} (@var{rhs} ...) : @var{action}
right-hand sides, i.e., the production rule, and @var{action} is a semantic right-hand sides, i.e., the production rule, and @var{action} is a semantic
action associated with the rule. action associated with the rule.
The generated parser is a two-argument procedure that takes a @dfn{tokenizer} The generated parser is a two-argument procedure that takes a
and a @dfn{syntax error procedure}. The tokenizer should be a unary procedure @dfn{tokenizer} and a @dfn{syntax error procedure}. The tokenizer
taking a port and returning a lexical token as produced by should be a thunk that returns lexical tokens as produced by
@code{make-lexical-token}. The syntax error procedure may be called with at @code{make-lexical-token}. The syntax error procedure may be called
least an error message (a string), and optionally the lexical token that caused with at least an error message (a string), and optionally the lexical
the error. token that caused the error.
@end deffn @end deffn
Please refer to the @code{lalr-scm} documentation for details. Please refer to the @code{lalr-scm} documentation for details.