fix docs for delay
parent
2aabeb9bb3
commit
f84761ae0c
|
@ -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." } ;
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue