Skip to content

ff #6111

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

ff #6111

Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use cxxdraft-htmlgen macros to annotate non-C++ code and literal frag…
…ments.
  • Loading branch information
Eelis committed Jul 28, 2025
commit e78efb543fd2c48cd865da592ca092fefb3c25a9
4 changes: 2 additions & 2 deletions source/exceptions.tex
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,11 @@
Any exception thrown while destroying
\tcode{t2}
will result in executing
\tcode{handler 2};
\noncxxtcode{handler 2};
any exception thrown while destroying
\tcode{t1}
will result in executing
\tcode{handler 1}.
\noncxxtcode{handler 1}.
\end{example}

\pnum
Expand Down
176 changes: 88 additions & 88 deletions source/lex.tex
Original file line number Diff line number Diff line change
Expand Up @@ -330,43 +330,43 @@
\ucode{000c} & \uname{form feed} & \\
\ucode{0020} & \uname{space} & \\
\ucode{000a} & \uname{line feed} & new-line \\
\ucode{0021} & \uname{exclamation mark} & \tcode{!} \\
\ucode{0022} & \uname{quotation mark} & \tcode{"} \\
\ucode{0023} & \uname{number sign} & \tcode{\#} \\
\ucode{0024} & \uname{dollar sign} & \tcode{\$} \\
\ucode{0025} & \uname{percent sign} & \tcode{\%} \\
\ucode{0026} & \uname{ampersand} & \tcode{\&} \\
\ucode{0027} & \uname{apostrophe} & \tcode{'} \\
\ucode{0028} & \uname{left parenthesis} & \tcode{(} \\
\ucode{0029} & \uname{right parenthesis} & \tcode{)} \\
\ucode{002a} & \uname{asterisk} & \tcode{*} \\
\ucode{002b} & \uname{plus sign} & \tcode{+} \\
\ucode{002c} & \uname{comma} & \tcode{,} \\
\ucode{002d} & \uname{hyphen-minus} & \tcode{-} \\
\ucode{002e} & \uname{full stop} & \tcode{.} \\
\ucode{002f} & \uname{solidus} & \tcode{/} \\
\ucode{0030} .. \ucode{0039} & \uname{digit zero .. nine} & \tcode{0 1 2 3 4 5 6 7 8 9} \\
\ucode{003a} & \uname{colon} & \tcode{:} \\
\ucode{003b} & \uname{semicolon} & \tcode{;} \\
\ucode{003c} & \uname{less-than sign} & \tcode{<} \\
\ucode{003d} & \uname{equals sign} & \tcode{=} \\
\ucode{003e} & \uname{greater-than sign} & \tcode{>} \\
\ucode{003f} & \uname{question mark} & \tcode{?} \\
\ucode{0040} & \uname{commercial at} & \tcode{@} \\
\ucode{0041} .. \ucode{005a} & \uname{latin capital letter a .. z} & \tcode{A B C D E F G H I J K L M} \\
& & \tcode{N O P Q R S T U V W X Y Z} \\
\ucode{005b} & \uname{left square bracket} & \tcode{[} \\
\ucode{005c} & \uname{reverse solidus} & \tcode{\textbackslash} \\
\ucode{005d} & \uname{right square bracket} & \tcode{]} \\
\ucode{005e} & \uname{circumflex accent} & \tcode{\caret} \\
\ucode{005f} & \uname{low line} & \tcode{_} \\
\ucode{0060} & \uname{grave accent} & \tcode{\`} \\
\ucode{0061} .. \ucode{007a} & \uname{latin small letter a .. z} & \tcode{a b c d e f g h i j k l m} \\
& & \tcode{n o p q r s t u v w x y z} \\
\ucode{007b} & \uname{left curly bracket} & \tcode{\{} \\
\ucode{007c} & \uname{vertical line} & \tcode{|} \\
\ucode{007d} & \uname{right curly bracket} & \tcode{\}} \\
\ucode{007e} & \uname{tilde} & \tcode{\textasciitilde} \\
\ucode{0021} & \uname{exclamation mark} & \noncxxtcode{!} \\
\ucode{0022} & \uname{quotation mark} & \noncxxtcode{"} \\
\ucode{0023} & \uname{number sign} & \noncxxtcode{\#} \\
\ucode{0024} & \uname{dollar sign} & \noncxxtcode{\$} \\
\ucode{0025} & \uname{percent sign} & \noncxxtcode{\%} \\
\ucode{0026} & \uname{ampersand} & \noncxxtcode{\&} \\
\ucode{0027} & \uname{apostrophe} & \noncxxtcode{'} \\
\ucode{0028} & \uname{left parenthesis} & \noncxxtcode{(} \\
\ucode{0029} & \uname{right parenthesis} & \noncxxtcode{)} \\
\ucode{002a} & \uname{asterisk} & \noncxxtcode{*} \\
\ucode{002b} & \uname{plus sign} & \noncxxtcode{+} \\
\ucode{002c} & \uname{comma} & \noncxxtcode{,} \\
\ucode{002d} & \uname{hyphen-minus} & \noncxxtcode{-} \\
\ucode{002e} & \uname{full stop} & \noncxxtcode{.} \\
\ucode{002f} & \uname{solidus} & \noncxxtcode{/} \\
\ucode{0030} .. \ucode{0039} & \uname{digit zero .. nine} & \noncxxtcode{0 1 2 3 4 5 6 7 8 9} \\
\ucode{003a} & \uname{colon} & \noncxxtcode{:} \\
\ucode{003b} & \uname{semicolon} & \noncxxtcode{;} \\
\ucode{003c} & \uname{less-than sign} & \noncxxtcode{<} \\
\ucode{003d} & \uname{equals sign} & \noncxxtcode{=} \\
\ucode{003e} & \uname{greater-than sign} & \noncxxtcode{>} \\
\ucode{003f} & \uname{question mark} & \noncxxtcode{?} \\
\ucode{0040} & \uname{commercial at} & \noncxxtcode{@} \\
\ucode{0041} .. \ucode{005a} & \uname{latin capital letter a .. z} & \noncxxtcode{A B C D E F G H I J K L M} \\
& & \noncxxtcode{N O P Q R S T U V W X Y Z} \\
\ucode{005b} & \uname{left square bracket} & \noncxxtcode{[} \\
\ucode{005c} & \uname{reverse solidus} & \noncxxtcode{\textbackslash} \\
\ucode{005d} & \uname{right square bracket} & \noncxxtcode{]} \\
\ucode{005e} & \uname{circumflex accent} & \noncxxtcode{\caret} \\
\ucode{005f} & \uname{low line} & \noncxxtcode{_} \\
\ucode{0060} & \uname{grave accent} & \noncxxtcode{\`} \\
\ucode{0061} .. \ucode{007a} & \uname{latin small letter a .. z} & \noncxxtcode{a b c d e f g h i j k l m} \\
& & \noncxxtcode{n o p q r s t u v w x y z} \\
\ucode{007b} & \uname{left curly bracket} & \noncxxtcode{\{} \\
\ucode{007c} & \uname{vertical line} & \noncxxtcode{|} \\
\ucode{007d} & \uname{right curly bracket} & \noncxxtcode{\}} \\
\ucode{007e} & \uname{tilde} & \noncxxtcode{\textasciitilde} \\
\end{floattable}

\pnum
Expand Down Expand Up @@ -603,15 +603,15 @@
\item
\indextext{literal!string!raw}%
If the next character begins a sequence of characters that could be the prefix
and initial double quote of a raw string literal, such as \tcode{R"}, the next preprocessing
and initial double quote of a raw string literal, such as \literaltcode{R"}, the next preprocessing
token shall be a raw string literal. Between the initial and final
double quote characters of the raw string, any transformations performed in phase
2 (line splicing) are reverted; this reversion
shall apply before any \grammarterm{d-char}, \grammarterm{r-char}, or delimiting
parenthesis is identified. The raw string literal is defined as the shortest sequence
of characters that matches the raw-string pattern
\begin{ncbnf}
\opt{encoding-prefix} \terminal{R} raw-string
\opt{encoding-prefix} \literalterminal{R} raw-string
\end{ncbnf}

\item Otherwise, if the next three characters are \tcode{<::} and the subsequent character
Expand Down Expand Up @@ -746,15 +746,15 @@
\begin{bnf}
\nontermdef{pp-number}\br
digit\br
\terminal{.} digit\br
\literalterminal{.} digit\br
pp-number identifier-continue\br
pp-number \terminal{'} digit\br
pp-number \terminal{'} nondigit\br
pp-number \terminal{e} sign\br
pp-number \terminal{E} sign\br
pp-number \terminal{p} sign\br
pp-number \terminal{P} sign\br
pp-number \terminal{.}
pp-number \literalterminal{'} digit\br
pp-number \literalterminal{'} nondigit\br
pp-number \literalterminal{e} sign\br
pp-number \literalterminal{E} sign\br
pp-number \literalterminal{p} sign\br
pp-number \literalterminal{P} sign\br
pp-number \literalterminal{.}
\end{bnf}

\pnum
Expand Down Expand Up @@ -1181,19 +1181,19 @@
\nontermdef{binary-literal}\br
\terminal{0b} binary-digit\br
\terminal{0B} binary-digit\br
binary-literal \opt{\terminal{'}} binary-digit
binary-literal \opt{\literalterminal{'}} binary-digit
\end{bnf}

\begin{bnf}
\nontermdef{octal-literal}\br
\terminal{0}\br
octal-literal \opt{\terminal{'}} octal-digit
octal-literal \opt{\literalterminal{'}} octal-digit
\end{bnf}

\begin{bnf}
\nontermdef{decimal-literal}\br
nonzero-digit\br
decimal-literal \opt{\terminal{'}} digit
decimal-literal \opt{\literalterminal{'}} digit
\end{bnf}

\begin{bnf}
Expand Down Expand Up @@ -1224,14 +1224,14 @@
\begin{bnf}
\nontermdef{hexadecimal-digit-sequence}\br
hexadecimal-digit\br
hexadecimal-digit-sequence \opt{\terminal{'}} hexadecimal-digit
hexadecimal-digit-sequence \opt{\literalterminal{'}} hexadecimal-digit
\end{bnf}

\begin{bnf}
\nontermdef{hexadecimal-digit} \textnormal{one of}\br
\terminal{0 1 2 3 4 5 6 7 8 9}\br
\terminal{a b c d e f}\br
\terminal{A B C D E F}
\literalterminal{0 1 2 3 4 5 6 7 8 9}\br
\literalterminal{a b c d e f}\br
\literalterminal{A B C D E F}
\end{bnf}

\begin{bnf}
Expand All @@ -1246,17 +1246,17 @@

\begin{bnf}
\nontermdef{unsigned-suffix} \textnormal{one of}\br
\terminal{u U}
\literalterminal{u U}
\end{bnf}

\begin{bnf}
\nontermdef{long-suffix} \textnormal{one of}\br
\terminal{l L}
\literalterminal{l L}
\end{bnf}

\begin{bnf}
\nontermdef{long-long-suffix} \textnormal{one of}\br
\terminal{ll LL}
\literalterminal{ll LL}
\end{bnf}

\begin{bnf}
Expand Down Expand Up @@ -1295,7 +1295,7 @@

\pnum
The \grammarterm{hexadecimal-digit}s
\tcode{a} through \tcode{f} and \tcode{A} through \tcode{F}
\literaltcode{a} through \literaltcode{f} and \literaltcode{A} through \literaltcode{F}
have decimal values ten through fifteen.
\begin{example}
The number twelve can be written \tcode{12}, \tcode{014},
Expand Down Expand Up @@ -1339,7 +1339,7 @@
&
&
\tcode{unsigned long long int}\\\hline
\tcode{u} or \tcode{U} &
\literaltcode{u} or \literaltcode{U} &
\tcode{unsigned int} &
\tcode{unsigned int}\\
&
Expand All @@ -1348,7 +1348,7 @@
&
\tcode{unsigned long long int} &
\tcode{unsigned long long int}\\\hline
\tcode{l} or \tcode{L} &
\literaltcode{l} or \literaltcode{L} &
\tcode{long int} &
\tcode{long int}\\
&
Expand All @@ -1360,22 +1360,22 @@
&
&
\tcode{unsigned long long int}\\\hline
Both \tcode{u} or \tcode{U} &
Both \literaltcode{u} or \literaltcode{U} &
\tcode{unsigned long int} &
\tcode{unsigned long int}\\
and \tcode{l} or \tcode{L} &
and \literaltcode{l} or \literaltcode{L} &
\tcode{unsigned long long int} &
\tcode{unsigned long long int}\\\hline
\tcode{ll} or \tcode{LL} &
\literaltcode{ll} or \literaltcode{LL} &
\tcode{long long int} &
\tcode{long long int}\\
&
&
\tcode{unsigned long long int}\\\hline
Both \tcode{u} or \tcode{U} &
Both \literaltcode{u} or \literaltcode{U} &
\tcode{unsigned long long int} &
\tcode{unsigned long long int}\\
and \tcode{ll} or \tcode{LL} &
and \literaltcode{ll} or \literaltcode{LL} &
&
\\\hline
\tcode{z} or \tcode{Z} &
Expand Down Expand Up @@ -1423,12 +1423,12 @@
\indextext{literal!character}%
\begin{bnf}
\nontermdef{character-literal}\br
\opt{encoding-prefix} \terminal{'} c-char-sequence \terminal{'}
\opt{encoding-prefix} \literalterminal{'} c-char-sequence \literalterminal{'}
\end{bnf}

\begin{bnf}
\nontermdef{encoding-prefix} \textnormal{one of}\br
\terminal{u8}\quad\terminal{u}\quad\terminal{U}\quad\terminal{L}
\literalterminal{u8}\quad\literalterminal{u}\quad\literalterminal{U}\quad\literalterminal{L}
\end{bnf}

\begin{bnf}
Expand Down Expand Up @@ -1479,16 +1479,16 @@

\begin{bnf}
\nontermdef{octal-escape-sequence}\br
\terminal{\textbackslash} octal-digit\br
\terminal{\textbackslash} octal-digit octal-digit\br
\terminal{\textbackslash} octal-digit octal-digit octal-digit\br
\terminal{\textbackslash o\{} simple-octal-digit-sequence \terminal{\}}
\literalterminal{\textbackslash} octal-digit\br
\literalterminal{\textbackslash} octal-digit octal-digit\br
\literalterminal{\textbackslash} octal-digit octal-digit octal-digit\br
\literalterminal{\textbackslash o\{} simple-octal-digit-sequence \literalterminal{\}}
\end{bnf}

\begin{bnf}
\nontermdef{hexadecimal-escape-sequence}\br
\terminal{\textbackslash x} simple-hexadecimal-digit-sequence\br
\terminal{\textbackslash x\{} simple-hexadecimal-digit-sequence \terminal{\}}
\literalterminal{\textbackslash x} simple-hexadecimal-digit-sequence\br
\literalterminal{\textbackslash x\{} simple-hexadecimal-digit-sequence \literalterminal{\}}
\end{bnf}

\begin{bnf}
Expand Down Expand Up @@ -1676,42 +1676,42 @@

\begin{bnf}
\nontermdef{fractional-constant}\br
\opt{digit-sequence} \terminal{.} digit-sequence\br
digit-sequence \terminal{.}
\opt{digit-sequence} \literalterminal{.} digit-sequence\br
digit-sequence \literalterminal{.}
\end{bnf}

\begin{bnf}
\nontermdef{hexadecimal-fractional-constant}\br
\opt{hexadecimal-digit-sequence} \terminal{.} hexadecimal-digit-sequence\br
hexadecimal-digit-sequence \terminal{.}
\opt{hexadecimal-digit-sequence} \literalterminal{.} hexadecimal-digit-sequence\br
hexadecimal-digit-sequence \literalterminal{.}
\end{bnf}

\begin{bnf}
\nontermdef{exponent-part}\br
\terminal{e} \opt{sign} digit-sequence\br
\terminal{E} \opt{sign} digit-sequence
\literalterminal{e} \opt{sign} digit-sequence\br
\literalterminal{E} \opt{sign} digit-sequence
\end{bnf}

\begin{bnf}
\nontermdef{binary-exponent-part}\br
\terminal{p} \opt{sign} digit-sequence\br
\terminal{P} \opt{sign} digit-sequence
\literalterminal{p} \opt{sign} digit-sequence\br
\literalterminal{P} \opt{sign} digit-sequence
\end{bnf}

\begin{bnf}
\nontermdef{sign} \textnormal{one of}\br
\terminal{+ -}
\literalterminal{+ -}
\end{bnf}

\begin{bnf}
\nontermdef{digit-sequence}\br
digit\br
digit-sequence \opt{\terminal{'}} digit
digit-sequence \opt{\literalterminal{'}} digit
\end{bnf}

\begin{bnf}
\nontermdef{floating-point-suffix} \textnormal{one of}\br
\terminal{f l f16 f32 f64 f128 bf16 F L F16 F32 F64 F128 BF16}
\literalterminal{f l f16 f32 f64 f128 bf16 F L F16 F32 F64 F128 BF16}
\end{bnf}

\pnum
Expand Down Expand Up @@ -1796,8 +1796,8 @@
\indextext{literal!string}%
\begin{bnf}
\nontermdef{string-literal}\br
\opt{encoding-prefix} \terminal{"} \opt{s-char-sequence} \terminal{"}\br
\opt{encoding-prefix} \terminal{R} raw-string
\opt{encoding-prefix} \literalterminal{"} \opt{s-char-sequence} \literalterminal{"}\br
\opt{encoding-prefix} \literalterminal{R} raw-string
\end{bnf}

\begin{bnf}
Expand All @@ -1820,7 +1820,7 @@

\begin{bnf}
\nontermdef{raw-string}\br
\terminal{"} \opt{d-char-sequence} \terminal{(} \opt{r-char-sequence} \terminal{)} \opt{d-char-sequence} \terminal{"}
\literalterminal{"} \opt{d-char-sequence} \literalterminal{(} \opt{r-char-sequence} \literalterminal{)} \opt{d-char-sequence} \literalterminal{"}
\end{bnf}

\begin{bnf}
Expand Down Expand Up @@ -1907,7 +1907,7 @@

\pnum
\indextext{literal!string!raw}%
A \grammarterm{string-literal} that has an \tcode{R}
A \grammarterm{string-literal} that has an \literaltcode{R}
\indextext{prefix!\idxcode{R}}%
in the prefix is a \defn{raw string literal}. The
\grammarterm{d-char-sequence} serves as a delimiter. The terminating
Expand Down
Loading
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy