Vocabulary
literals

Syntax
$[ code ]


Word description
Calls code at parse time and adds the result(s) to the parser accumulator.

Notes
Since code is call ed at parse time, it cannot reference any words defined in the same compilation unit.

Examples
USING: kernel literals math prettyprint ; IN: scratchpad << CONSTANT: five 5 >> { $[ five dup 1 + dup 2 + ] } .
{ 5 6 8 }


See also
$, ${

Definition