Cactus Programming Language
(for Windows 95/98)

Author: Kevin Puckett Albrecht
Varsion: 2.1
Date: July 19, 1999
E-mail: kpalb@hotmail.com
Website: http://home.earthlink.net/~kevalb/

Description

Cactus is the interpreter for the simple programming language of the same name. Cactus files are identified by the following extension and/or MIME type: (.cts, text/x-vnd.KPA-cactus).

Usage

On the command line, type the following:

cactus [filename]

Cactus Languages

Note: Optional commands are surrounded in parentheses.
Commands:
$ comment
indicate a comment
name program name
indicate the name of the program
new data type variable (: expression)
create a new variable initialized to zero or the value of the expression
old variable
remove the variable
input variable
assign input from the user to the variable
write (data type expression)
print the value of the expression with a new line
writes (data type expression)
print the value of the expression without a new line
variable : expression
assign the value of the expression to the variable
Key:
variable
begins with a letter or underscore, and cannot contain the following: ~`!@#$%^&*()-+={[}]|\:;"'<,>.?/
expression
combinations of literals and variables seperated by spaces and one of the following operators: + - * /
evaluated from left to right (NO ORDER OF OPERATIONS!)
data type
one of the following: integer, int, rational, rat, string, str

Copyright

This product includes software developed by the University of California, Berkeley and its contributors.
This product was compiled using DJGPP, which can be found at: http://www.delorie.com/djgpp/