BareBones Interpreter
Syntax
clear
name
;
incr
name
;
decr
name
;
while
name
;
.
.
end
;
Not part of the language:
set
name
n
;
Sample 1
Initialize variables without
clear
Sample 2
Copy
foo
to
bar
, preserve
foo
Sample 3
X * Y
, product in
Z
,
X
&
Y
destroyed
Sample 4
Invert
X
Note:
The statement
set
name
n
;
is included for convenience so that programs do not have to be littered with
incr
statements; it is not part of the language.
Reference:
Brookshear, Glenn J.
Computer Science: an Overview, 6th Ed.
Addison Wesley-Longman, 2000
ISBN 0-201-35747-X
pp. 492-497
Revised: 29 JUL 2001 12:57