VocabularysyntaxSyntax: word ( stack -- effect ) definition... ;
InputsNone
OutputsNone
Word descriptionDefines a word with the given stack effect in the current vocabulary.
Examples: ask-name ( -- name )
"What is your name? " write readln ;
: greet ( name -- )
"Greetings, " write print ;
: friend ( -- )
ask-name greet ;
See also;,
defineDefinition