4 The Programming Language

This chapter describes the GAP programming language. It should allow you in principle to predict the result of each and every input. In order to know what we are talking about, we first have to look more closely at the process of interpretation and the various representations of data involved.

Sections

  1. Language Overview
  2. Lexical Structure
  3. Symbols
  4. Whitespaces
  5. Keywords
  6. Identifiers
  7. Expressions
  8. Variables
  9. More About Global Variables
  10. Function Calls
  11. Comparisons
  12. Arithmetic Operators
  13. Statements
  14. Assignments
  15. Procedure Calls
  16. If
  17. While
  18. Repeat
  19. For
  20. Break
  21. Functions
  22. Return
  23. The Syntax in BNF

[Top] [Previous] [Up] [Next] [Index]

GAP 4 manual
February 2000