diff options
| author | Eugen Wissner <belka@caraus.de> | 2026-02-15 19:29:10 +0100 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2026-02-15 19:29:10 +0100 |
| commit | 512a57cccae2e304ee99c29334d34a7b905db1e9 (patch) | |
| tree | 2820b5920fbd959df2fd606370c1697d1458824f | |
| parent | 80364d429e373dd1fcea7cc3cc67ff981ebdb5b6 (diff) | |
| download | elna-512a57cccae2e304ee99c29334d34a7b905db1e9.tar.gz | |
Add statement section description
| -rw-r--r-- | doc/language.tex | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/language.tex b/doc/language.tex index 9112127..08d2420 100644 --- a/doc/language.tex +++ b/doc/language.tex @@ -335,5 +335,21 @@ relations $=$ and $<>$ apply to all types. \chapter{Statements} +\begin{grammar} +<statement> = <assignment> | <procedure-call> | <defer-statement> + | <label-declaration> | <goto-statement> | + | <while-statement> | <if-statement> | <case-statement>. +\end{grammar} + +Statements denote actions. There are elementary and structured statements. +Elementary statements are not composed of any parts that are themselves +statements. They are the assignment and the procedure call. Structured +statements are composed of parts that are themselves statements. They +are used to express sequencing and conditional, selective, and +repetitive execution. A statement may also be empty, in which case it +denotes no action. The empty statement is included in order to relax +punctuation rules in statement sequences. + +\section{Elementary statements} \section{Conditional statements} \section{Loop statements} |
