Add box parser to docs

db4
Chris Double 2008-03-29 17:45:21 +13:00
parent 86653e7a46
commit 8105e66aec
1 changed files with 14 additions and 1 deletions

View File

@ -159,4 +159,17 @@ HELP: delay
{ $description
"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 "
"should return the constructed parser." } ;
"should return the constructed parser and is called the first time the parser is run."
"The compiled result is memoized for future runs. See " { $link box } " for a word "
"that calls the quotation at compile time." } ;
HELP: box
{ $values
{ "quot" "a quotation" }
{ "parser" "a parser" }
}
{ $description
"Delays the construction of a parser until the parser is compiled. The quotation "
"should return the constructed parser and is called when the parser is compiled."
"The compiled result is memoized for future runs. See " { $link delay } " for a word "
"that calls the quotation at runtime." } ;