InitGlobals:
PROC RETURNS [Alist] =
BEGIN
N000: NumPtr = NEW [NumCell ← [val: 000, const: TRUE, int: TRUE]];
N064: NumPtr = NEW [NumCell ← [val: 064, const: TRUE, int: TRUE]];
N128: NumPtr = NEW [NumCell ← [val: 128, const: TRUE, int: TRUE]];
N192: NumPtr = NEW [NumCell ← [val: 192, const: TRUE, int: TRUE]];
N224: NumPtr = NEW [NumCell ← [val: 224, const: TRUE, int: TRUE]];
N255: NumPtr = NEW [NumCell ← [val: 255, const: TRUE, int: TRUE]];
RETURN [LIST[
-- color values
$black, LIST [N000, N000, N000],
$white, LIST [N255, N255, N255],
$grey, LIST [N128, N128, N128],
$red, LIST [N255, N000, N000],
$blue, LIST [N000, N000, N255],
$green, LIST [N000, N255, N000],
$darkred, LIST [N192, N064, N000],
$darkblue, LIST [N000, N064, N192],
$darkgreen, LIST [N000, N192, N064],
$lightred, LIST [N255, N128, N128],
$lightblue, LIST [N128, N192, N255],
$lightgreen, LIST [N192, N255, N128],
$yellow, LIST [N255, N255, N000],
$cyan, LIST [N000, N255, N255],
$magenta, LIST [N255, N000, N255],
$darkyellow, LIST [N224, N192, N000],
$darkcyan, LIST [N000, N192, N192],
$darkmagenta, LIST [N192, N000, N192],
$lightyellow, LIST [N255, N255, N128],
$lightcyan, LIST [N128, N255, N255],
$lightmagenta, LIST [N255, N128, N255],
-- styles and fonts
$TimesRoman, "TimesRoman",
$Helvetica, "Helvetica",
$Gacha, "Gacha",
$roman, NEW[NumCell ← [val:0]],
$italic, NEW[NumCell ← [val:1]],
$bold, NEW[NumCell ← [val:2]],
$boldItalic, NEW[NumCell ← [val:3]]
-- stroke end types
$butt, $butt,
$square, $square,
$round, $round,
-- basic operators
comma, comma,
semicolon, semicolon,
plus, plus,
minus, minus,
times, times,
slash, slash,
div, div,
mod, mod,
paint, paint,
draw, draw,
fill, fill,
print, print,
leftPren, leftPren,
leftBrack, leftBrack,
assign, assign,
quote, quote,
blow, blow,
skip, skip,
size, size,
font, font,
style, style,
colon, colon,
if, if,
do, do,
list, list]]
END;