GarScript Supported Commands

a ^ (caret) denotes an expiremental or unimplemented (or both) command.

{string} [number] - no args

EXIT -
	ends program execution
	ex: EXIT
TEXT {text to display}
	displays text
	ex: TEXT hello world!
CLS -
	clears the screen
	ex: CLS
CURSOR [y],[x]
	sets cursor to [y],[x] (row,column)
	ex: CURSOR 3,3
COLOR [color]
	sets foreground color to [color]
	ex: COLOR 3
WAITFORKEY -
	stops execution until user presses a key
	ex: WAITFORKEY

LBL {label}
	sets a point for a goto statement to jump
	ex: LBL end

GOTO {label}
	jumps to the point in the program where
	LBL {label} occours
	ex: GOTO end

COM {comment}
	a comment, program ignores these
	ex: COM ignore me!

INPUT {prompt},[varnum],{type}
	inputs a type of variable into the varnum (9 of each var)
	ex: INPUT Enter your name: ,1,s

VDISP [varnum],{type}
	displays a variables contents
	ex: VDISP 1,s

COMMA {character},[on/off]
	sets character to be a comma, on=1 off=0
	ex: COMMA ~,1

INKEY
	waits for user to input a key

KEYIS {character},{label}
	compares stored inkey with character and jumps to label if true

BKEY
	erases memory with key data (sets to null)

DOS {command string}
	executes a DOS command string, use COMMA command for commas.

OPEN^ {gar file}
	opens a gar file and starts executing it

SUB^ {sub name},{optional return label}
	executes a sub and returns to the position after the calling
	command or goes to label when finished (declare subs with the
	LBL command)

RETSUB^ {optional label}
	goes to label or to position after sub was called

