This is an old revision of the document!
Grammar
This is the formal definition of XC=BASIC's grammar.
Program
Program ::= Line* EOF
Line
Statement
Statement
::= 'ASM'
| _CALL
| _CONST
| _CONTINUE
| _DATA
| _DECLARATION
| _DIM
| _DO
| _LET
| _END
| _EXIT
| _ERROR
| 'ELSE'
| _FIELD
| _FOR
| _FUNCTION
| _GENERIC
| _GET
| _GOTO
| _GOSUB
| _INCBIN
| _INCLUDE
| _IF
| _INPUT
| _LOOP
| _NEXT
| _ON
| _ORIGIN
| _PRINT
| _READ
| _REM
| _RETURN
| _SUB
| _SWAP
| _SYS
| _TYPE
| _WRITE