Contents
Back
Forward

A2. Inform statements

box <line-1> <line-2> ... <line-n>
break
continue
do <code block> until <condition>
font on or off
for (<initial code>:<condition to carry on>:<update code>) <code block>
give <object> <attribute-1> ... <attribute-n>
if <condition> <code block>
if <condition> <code block> else <code-block>
inversion
jump <label>
move <object> to <destination>
new_line
objectloop <condition choosing objects> <code block>
print <list of printing specifications>
print_ret <list of printing specifications>
quit
read <text-buffer> <parsing-buffer>
remove <object>
restore <label>
return <optional value>
rfalse
rtrue
save <label>
spaces <number of spaces to print>
string <number> <text>
style roman or bold or underline or reverse or fixed
switch (<value>) <block of cases>
while <condition> <code-block>
Statements must be given in lower case. Code blocks consist of either a single statement or a group of statements enclosed in braces { and }. Print specifications are given as a list of one or more items, separated by commas:
"<some literal text to print>"
<numerical quantity>
(char) <a character code>
(string) <a string address>
(address) <text held at this byte address>
(name) <object>
(a) <object>
(an) <object>
(the) <object>
(The) <object>
(property) <name of a property>
(object) <internal "hardware'' object short name>

Contents / Back / Forward
Chapter I / Chapter II / Chapter III / Chapter IV / Chapter V / Chapter VI / Appendix
Mechanically translated to HTML from third edition as revised 16 May 1997. Copyright © Graham Nelson 1993, 1994, 1995, 1996, 1997: all rights reserved.