From cae97d989047404eaad64d87a452cffd7364f38a Mon Sep 17 00:00:00 2001 From: Matthew Flatt Date: Thu, 12 Mar 2009 01:35:30 +0000 Subject: [PATCH] fix more parser-tools doc bugs svn: r14064 original commit: 7f301ad44637d814d4035a07fb8abb932cfc3309 --- collects/parser-tools/parser-tools.scrbl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/collects/parser-tools/parser-tools.scrbl b/collects/parser-tools/parser-tools.scrbl index 1479bfd..d10806a 100644 --- a/collects/parser-tools/parser-tools.scrbl +++ b/collects/parser-tools/parser-tools.scrbl @@ -83,7 +83,7 @@ style lexer and parser generators. Note that both @scheme[(concatenation)] and @scheme[""] match the empty string, @scheme[(union)] matches nothing, @scheme[(intersection)] matches any string, and -@scheme[(char-complement)] matches any single character. +@scheme[(char-complement (union))] matches any single character. The regular expression language is not designed to be used directly, but rather as a basis for a user-friendly notation written with @@ -484,7 +484,7 @@ the right choice when using @scheme[lexer] in other situations. @defmodule[parser-tools/yacc] -@defform/subs[#:literals (grammar tokens start end precs error src-pos +@defform/subs[#:literals (grammar tokens start end precs src-pos suppress debug yacc-output prec) (parser clause ...) ([clause (grammar (non-terminal-id @@ -494,7 +494,7 @@ the right choice when using @scheme[lexer] in other situations. (tokens group-id ...) (start non-terminal-id ...) (end token-id ...) - (error expr) + (#, @schemeidfont{error} expr) (precs (assoc token-id ...) ...) (src-pos) (suppress) @@ -570,7 +570,7 @@ the right choice when using @scheme[lexer] in other situations. that parses entire lines individually.} - @item{@scheme[(error expr)] + @item{@scheme[(#, @schemeidfont{error} expr)] The @scheme[expr] should evaluate to a function which will be executed for its side-effect whenever the parser encounters an