AKD BASIC Language

This chapter describes the overall structure of an AKD BASIC program and the elements of the AKD BASIC language. Topics covered are:

  • scope
  • program structure
    • setup parameters
    • global variables, constants and aliases
    • ‘main’ program, subroutines, functions and interrupt handlers
  • language description
    • lexical conventions
    • identifiers
    • data types
    • constants
    • statements
    • built-in functions
    • parameters
    • expressions
    • function invocation
    • $include
    • arrays and parameter lists
    • optimizations

For a list of AKD BASIC sample programs, see Appendix A: BASIC Sample Programs.