xor
( n1 n2 --- n3 )
"x-or". Return the exclusive OR of n1 and n2.
[
( --- )
"left-bracket". Turn compilation mode off. Words following [ in the
input stream are executed rather than being compiled. [ is generally
paired with ] in a colon definition.
: aword compiled_words [ executed_words ] compilation words ;
See ].
[']
( --- )
"bracket-tick". A special form of tick that is immediate.
It is generally used to retrieve the WA of an immediate word rather
than execute it. For example:
: got.true ." True..." ; immediate
: got.false ." False..." ; immediate
: test ( tf --- )
if ['] got.true
else ['] got.false
then
execute;
[compile]
( --- )
"bracket-compile". Compile an immediate word into the dictionary.
The word following in the input stream is used.
: aword [compile] ['] ;
The effect is the same as ['] aword execute. This
is used in traditional Forths to build looping words such
as while and repeat.
\
( --- )
"backslash". Comment to end of line. The rest of the line is
ignored by the compiler.
some words \ this portion is a comment
]
( --- )
"right bracket". Turn on compilation mode. Text from the input
stream is now compiled instead of executed. ] is usually
paired with [.
: five [ ascii 5 ] literal emit ;
When five executes, the digit 5 is displayed on the
terminal.
{
( --- )
"left brace". Leave a {} delimited string at here. The string
is stored null terminated. Use { interactively for specifying
parameter strings to operating system type words such as edit.
A typical call is:
{ filename} here edit
This { cannot be used inside a colon definition.
Note: This word is considered obsolete and has been replaced
by ". { will be dropped in a future release.
Table of Contents
Next Section