VocabularyliteralsSyntax$[ code ]
Word descriptionCalls
code at parse time and adds the result(s) to the parser accumulator.
NotesSince
code is
called at parse time, it cannot reference any words defined in the same compilation unit.
ExamplesUSING: kernel literals math prettyprint ;
IN: scratchpad
<< CONSTANT: five 5 >>
{ $[ five dup 1 + dup 2 + ] } .
{ 5 6 8 }
See also$,
${Definition