unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* [PATCH] LALR Parser Documentation Fix
@ 2010-10-27  1:46 Noah Lavine
  2010-10-27 22:05 ` Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Noah Lavine @ 2010-10-27  1:46 UTC (permalink / raw)
  To: guile-devel

The documentation for the LALR parser currently says that the
tokenizer procedure passed to the parser should be a unary procedure
taking a port, but the documentation at
http://code.google.com/p/lalr-scm/wiki/ParserDefinition says it should
be a thunk. The following patch fixes this:

Noah

diff --git a/doc/ref/api-lalr.texi b/doc/ref/api-lalr.texi
index e19614c..95b0a85 100644
--- a/doc/ref/api-lalr.texi
+++ b/doc/ref/api-lalr.texi
@@ -25,12 +25,12 @@ Each rule has the form @code{(@var{non-terminal} (@var{rhs}
 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.



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-10-27 22:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-27  1:46 [PATCH] LALR Parser Documentation Fix Noah Lavine
2010-10-27 22:05 ` Ludovic Courtès

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).