Describe the comment syntax

This commit is contained in:
2026-05-10 10:04:31 +02:00
parent 92e88cfcb2
commit 2dad82cb69
+19 -4
View File
@@ -10,10 +10,25 @@ Each procedure can get some input and produce an output as a result of
executing a \textbf{statement block}, a list, where each \textbf{statement} executing a \textbf{statement block}, a list, where each \textbf{statement}
is executed in the order it appears in the block. is executed in the order it appears in the block.
Statement components are other statement blocks and \textbf{expressions}, \chapter{Vocabulary}
where a statement has control over the evaluation of its components.
Statements can also modify the state of the procedure or the program by A language is an infinite set of sentences, namely the sentences well formed
mutating variables. according to its syntax. In Elna, these sentences are called compilation units.
Each unit is a finite sequence of \textit{tokens} from a finite vocabulary.
The vocabulary of Elna consists of identifiers, key words, numbers, characters,
strings, operators, delimiters, and comments. They are called \textit{tokens}
and are composed of sequences of characters.
The following lexical rules must be observed when composing tokens. Blanks and
line breaks must not occur within tokens (except in comments and strings). They
are ignored unless they are essential to separate two consecutive tokens.
Capital and lower-case letters are considered as being distinct.
\section{Comments}
\textit{Comments} may be inserted between any two tokens in a program. They
are arbitrary character sequences opened by the bracket \verb|(*| and closed
by \verb|*)|. Comments do not affect the meaning of a program.
\chapter{Expressions} \chapter{Expressions}