memoize: add description of arguments and values to MEMO: syntax in docs

db4
Keita Haga 2011-01-26 18:53:12 +09:00
parent 334d0de92a
commit 187710a7b7
1 changed files with 1 additions and 0 deletions

View File

@ -23,6 +23,7 @@ HELP: define-memoized
HELP: MEMO:
{ $syntax "MEMO: word ( stack -- effect ) definition... ;" }
{ $values { "word" "a new word to define" } { "definition" "a word definition" } }
{ $description "Defines the given word at parse time as one which memoizes its output given a particular input. The stack effect is mandatory." } ;
{ define-memoized POSTPONE: MEMO: } related-words