Super Prev Next

Constant declarations

A constant declaration associates an identifier with a constant value.

  ConstantDeclaration = IdentDef "=" ConstExpression.
  ConstExpression     = Expression.

A constant expression is an expression that can be evaluated by a mere textual scan without actually executing the program. Its operands are constants (section Expressions) or predeclared functions (section Predeclared procedures) that can be evaluated at compile time. Examples of constant declarations are:

  N = 100
  limit = 2*N - 1
  fullSet = {MIN(SET)..MAX(SET)}