fix docs for delay

db4
Doug Coleman 2008-03-05 18:15:28 -06:00
parent 2aabeb9bb3
commit f84761ae0c
2 changed files with 3 additions and 2 deletions

View File

@ -135,9 +135,10 @@ HELP: hide
HELP: delay HELP: delay
{ $values { $values
{ "quot" "a quotation" }
{ "parser" "a parser" } { "parser" "a parser" }
} }
{ $description { $description
"Delays the construction of a parser until it is actually required to parse. This " "Delays the construction of a parser until it is actually required to parse. This "
"allows for calling a parser that results in a recursive call to itself. The quotation " "allows for calling a parser that results in a recursive call to itself. The quotation "
"should return the constructed parser." } ; "should return the constructed parser." } ;

View File

@ -358,7 +358,7 @@ MEMO: sp ( parser -- parser )
MEMO: hide ( parser -- parser ) MEMO: hide ( parser -- parser )
[ drop ignore ] action ; [ drop ignore ] action ;
MEMO: delay ( parser -- parser ) MEMO: delay ( quot -- parser )
delay-parser construct-boa init-parser ; delay-parser construct-boa init-parser ;
: PEG: : PEG: