1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-20 11:40:18 +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
action associated with the rule.
The generated parser is a two-argument procedure that takes a @dfn{tokenizer}
and a @dfn{syntax error procedure}. The tokenizer should be a unary procedure
taking a port and returning a lexical token as produced by
@code{make-lexical-token}. The syntax error procedure may be called with at
least an error message (a string), and optionally the lexical token that caused
the error.
The generated parser is a two-argument procedure that takes a
@dfn{tokenizer} and a @dfn{syntax error procedure}. The tokenizer
should be a thunk that returns lexical tokens as produced by
@code{make-lexical-token}. The syntax error procedure may be called
with at least an error message (a string), and optionally the lexical
token that caused the error.
@end deffn
Please refer to the @code{lalr-scm} documentation for details.