An nqBASIC program has the following structure:
- constant, type and variable definitions first (CONST, TYPE and DIM),
- functions and tasks next (SUB and TASK)
- main-function at end (MAIN).
These definitions may be spread over several source-files (“.nqb” files, but should follow the order as listed above). I.e. after function-definitions NO variable definitions may follow.
All code is case-INsensitive
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Program StructureOther SyntaxConstants
Data Types
Custom TypesObject Types
|
Boolean Operators
Variable/Object DeclarationFlow ControlArithmetic Operators
Comparison Operators |