Vocabulary
syntax

Syntax
: word ( stack -- effect ) definition... ;


Inputs
None

Outputs
None

Word description
Defines 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
;, define

Definition