Conventions

EXPR
an expression that evaluates to a numeric value.
STRINGEXPR
a string expression.
VAR
a numeric variable.
STRINGVAR
a string variable. Name must end with a '$'.
INTEGERVAR
a 16-bit variable. Name must end with a '%'.

All program lines must begin with a line number (except when loaded from files). Using spaces (indentation) between the line number and program statements is legal. Line numbers can be between 1 and 2147483647. Programs lines must be no longer than 254 characters in length.

Subroutine names starting with "fn" are reserved for the (obsolete) def fn functions.

Hexadecimal numbers can be entered by preceding them with a "0x" as in 0x02ae, or by "&h" as in &h0172.

Multiple statements may be given on one line, separated by colons:

10 INPUT X : PRINT X : STOP