statement

From Free Pascal wiki
Revision as of 07:49, 22 June 2020 by Kai Burghardt (talk | contribs) (substitute legacy syntaxhighlight syntax; rename page link from “Branches” to “Branch”, because there is already Branch/de (though no [English] Branch yet))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

English (en) suomi (fi)

Statements are parts of a program that alter its state, e. g. by changing a variable’s value.

classification

One may distinguish between simple and structured statements.

Elementary statements are those, which can not be broken down into smaller pieces – “sub-statements”. These are

Complex statements are

  • compound statements (also called sequence) delimited by begin and end,
  • inline assembler blocks delimited by asm and end,
  • branches, and
  • loops.

remarks

In contrast to statements, instructions are the building blocks in low-level assembly language.

Empty statements are not statements in a formal sense, since they merely exist to satisfy syntax requirements in a non-superfluous manner.

see also