1
0

Remove backspace and bel escape sequences

This commit is contained in:
2026-05-31 08:34:48 +02:00
parent 67fdf3d233
commit 58c2617bb1
2 changed files with 22 additions and 3 deletions
+3 -3
View File
@@ -21,7 +21,7 @@
<printable-character> = \enspace? a printable ASCII character\space?.
<character> = <printable-character> | <escaped-character> | <hex-digit>.
<character> = <printable-character> | <escaped-character> | <hex-character>.
<identifier> = <letter> \{<letter> | <decimal-digit>\}.
@@ -38,10 +38,10 @@
<real-literal> = <integer-literal> `.\@' <decimal-digit> \{<decimal-digit>\}
\alt{} <integer-literal>\} `e' [`+' | `-'] <decimal-digit> \{<decimal-digit>\}.
<string-literal> = `\textquotedbl' \{<character>\} `\textquotedbl'.
<character-literal> = `\textquotesingle' <character> `\textquotesingle'.
<string-literal> = `\textquotedbl' \{<character>\} `\textquotedbl'.
<literal> = <integer-literal> | <word-literal> | <real-literal>
\alt{} <string-literal> | <character-literal>
\alt{} `true' | `false' | `nil'.
+19
View File
@@ -77,6 +77,25 @@ Examples:
\section{Strings and characters}
Single \textit{characters} are enclosed in single quotation marks
(\textquotesingle).\@ \textit{Strings} are sequences of characters enclosed in
double quotation marks (\textquotedbl). The number of characters in a string is
called the \textit{the length} of the string.
\begin{grammar}
<hex-character> = `\\x' <hex-digit> <hex-digit>.
<character> = <printable-character> | <escaped-character> | <hex-character>.
<character-literal> = `\textquotesingle' <character> `\textquotesingle'.
<string-literal> = `\textquotedbl' \{<character>\} `\textquotedbl'.
\end{grammar}
Alternatively, a single character may be represented by a
\textit{escape sequence}, a character combination beginning with a
backslash (\textbackslash).
\section{Operators and delimiters}
\section{Comments}