DESCRIPTIONS

Back to:
index

This part of analysis begins from checking the following reserved words

  • CONST
  • VAR
  • PROCEDURE
  • FUNCTION
  • BEGIN
(You can see from this list, that educational compiler doesn't support labels and type description.) After "correct" keyword, "COMPAS" jumps to correspondent analysis of
variables, constants, procedure or function.

This process is cyclic, because it can be many statements in the program. As in all modern compilers, the order of statements is not essential.

The end of the cycle is reached, when the reserve word BEGIN is met.

"COMPAS" also finishes its analysis after any procedure or function construction (so no more, than one procedure or function can be translated). It's a limitation, but I hope not essential for educational compiler.



Back to:
index top