Skip to content

Commit 4c6f966

Browse files
committed
Use cxxdraft-htmlgen macros to annotate non-C++ code and literal fragments.
1 parent a662977 commit 4c6f966

File tree

3 files changed

+349
-349
lines changed

3 files changed

+349
-349
lines changed

source/exceptions.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,11 @@
135135
Any exception thrown while destroying
136136
\tcode{t2}
137137
will result in executing
138-
\tcode{handler 2};
138+
\noncxxtcode{handler 2};
139139
any exception thrown while destroying
140140
\tcode{t1}
141141
will result in executing
142-
\tcode{handler 1}.
142+
\noncxxtcode{handler 1}.
143143
\end{example}
144144

145145
\pnum

source/lex.tex

Lines changed: 88 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -293,43 +293,43 @@
293293
\ucode{000c} & \uname{form feed} & \\
294294
\ucode{0020} & \uname{space} & \\
295295
\ucode{000a} & \uname{line feed} & new-line \\
296-
\ucode{0021} & \uname{exclamation mark} & \tcode{!} \\
297-
\ucode{0022} & \uname{quotation mark} & \tcode{"} \\
298-
\ucode{0023} & \uname{number sign} & \tcode{\#} \\
299-
\ucode{0024} & \uname{dollar sign} & \tcode{\$} \\
300-
\ucode{0025} & \uname{percent sign} & \tcode{\%} \\
301-
\ucode{0026} & \uname{ampersand} & \tcode{\&} \\
302-
\ucode{0027} & \uname{apostrophe} & \tcode{'} \\
303-
\ucode{0028} & \uname{left parenthesis} & \tcode{(} \\
304-
\ucode{0029} & \uname{right parenthesis} & \tcode{)} \\
305-
\ucode{002a} & \uname{asterisk} & \tcode{*} \\
306-
\ucode{002b} & \uname{plus sign} & \tcode{+} \\
307-
\ucode{002c} & \uname{comma} & \tcode{,} \\
308-
\ucode{002d} & \uname{hyphen-minus} & \tcode{-} \\
309-
\ucode{002e} & \uname{full stop} & \tcode{.} \\
310-
\ucode{002f} & \uname{solidus} & \tcode{/} \\
311-
\ucode{0030} .. \ucode{0039} & \uname{digit zero .. nine} & \tcode{0 1 2 3 4 5 6 7 8 9} \\
312-
\ucode{003a} & \uname{colon} & \tcode{:} \\
313-
\ucode{003b} & \uname{semicolon} & \tcode{;} \\
314-
\ucode{003c} & \uname{less-than sign} & \tcode{<} \\
315-
\ucode{003d} & \uname{equals sign} & \tcode{=} \\
316-
\ucode{003e} & \uname{greater-than sign} & \tcode{>} \\
317-
\ucode{003f} & \uname{question mark} & \tcode{?} \\
318-
\ucode{0040} & \uname{commercial at} & \tcode{@} \\
319-
\ucode{0041} .. \ucode{005a} & \uname{latin capital letter a .. z} & \tcode{A B C D E F G H I J K L M} \\
320-
& & \tcode{N O P Q R S T U V W X Y Z} \\
321-
\ucode{005b} & \uname{left square bracket} & \tcode{[} \\
322-
\ucode{005c} & \uname{reverse solidus} & \tcode{\textbackslash} \\
323-
\ucode{005d} & \uname{right square bracket} & \tcode{]} \\
324-
\ucode{005e} & \uname{circumflex accent} & \tcode{\caret} \\
325-
\ucode{005f} & \uname{low line} & \tcode{_} \\
326-
\ucode{0060} & \uname{grave accent} & \tcode{\`} \\
327-
\ucode{0061} .. \ucode{007a} & \uname{latin small letter a .. z} & \tcode{a b c d e f g h i j k l m} \\
328-
& & \tcode{n o p q r s t u v w x y z} \\
329-
\ucode{007b} & \uname{left curly bracket} & \tcode{\{} \\
330-
\ucode{007c} & \uname{vertical line} & \tcode{|} \\
331-
\ucode{007d} & \uname{right curly bracket} & \tcode{\}} \\
332-
\ucode{007e} & \uname{tilde} & \tcode{\textasciitilde} \\
296+
\ucode{0021} & \uname{exclamation mark} & \noncxxtcode{!} \\
297+
\ucode{0022} & \uname{quotation mark} & \noncxxtcode{"} \\
298+
\ucode{0023} & \uname{number sign} & \noncxxtcode{\#} \\
299+
\ucode{0024} & \uname{dollar sign} & \noncxxtcode{\$} \\
300+
\ucode{0025} & \uname{percent sign} & \noncxxtcode{\%} \\
301+
\ucode{0026} & \uname{ampersand} & \noncxxtcode{\&} \\
302+
\ucode{0027} & \uname{apostrophe} & \noncxxtcode{'} \\
303+
\ucode{0028} & \uname{left parenthesis} & \noncxxtcode{(} \\
304+
\ucode{0029} & \uname{right parenthesis} & \noncxxtcode{)} \\
305+
\ucode{002a} & \uname{asterisk} & \noncxxtcode{*} \\
306+
\ucode{002b} & \uname{plus sign} & \noncxxtcode{+} \\
307+
\ucode{002c} & \uname{comma} & \noncxxtcode{,} \\
308+
\ucode{002d} & \uname{hyphen-minus} & \noncxxtcode{-} \\
309+
\ucode{002e} & \uname{full stop} & \noncxxtcode{.} \\
310+
\ucode{002f} & \uname{solidus} & \noncxxtcode{/} \\
311+
\ucode{0030} .. \ucode{0039} & \uname{digit zero .. nine} & \noncxxtcode{0 1 2 3 4 5 6 7 8 9} \\
312+
\ucode{003a} & \uname{colon} & \noncxxtcode{:} \\
313+
\ucode{003b} & \uname{semicolon} & \noncxxtcode{;} \\
314+
\ucode{003c} & \uname{less-than sign} & \noncxxtcode{<} \\
315+
\ucode{003d} & \uname{equals sign} & \noncxxtcode{=} \\
316+
\ucode{003e} & \uname{greater-than sign} & \noncxxtcode{>} \\
317+
\ucode{003f} & \uname{question mark} & \noncxxtcode{?} \\
318+
\ucode{0040} & \uname{commercial at} & \noncxxtcode{@} \\
319+
\ucode{0041} .. \ucode{005a} & \uname{latin capital letter a .. z} & \noncxxtcode{A B C D E F G H I J K L M} \\
320+
& & \noncxxtcode{N O P Q R S T U V W X Y Z} \\
321+
\ucode{005b} & \uname{left square bracket} & \noncxxtcode{[} \\
322+
\ucode{005c} & \uname{reverse solidus} & \noncxxtcode{\textbackslash} \\
323+
\ucode{005d} & \uname{right square bracket} & \noncxxtcode{]} \\
324+
\ucode{005e} & \uname{circumflex accent} & \noncxxtcode{\caret} \\
325+
\ucode{005f} & \uname{low line} & \noncxxtcode{_} \\
326+
\ucode{0060} & \uname{grave accent} & \noncxxtcode{\`} \\
327+
\ucode{0061} .. \ucode{007a} & \uname{latin small letter a .. z} & \noncxxtcode{a b c d e f g h i j k l m} \\
328+
& & \noncxxtcode{n o p q r s t u v w x y z} \\
329+
\ucode{007b} & \uname{left curly bracket} & \noncxxtcode{\{} \\
330+
\ucode{007c} & \uname{vertical line} & \noncxxtcode{|} \\
331+
\ucode{007d} & \uname{right curly bracket} & \noncxxtcode{\}} \\
332+
\ucode{007e} & \uname{tilde} & \noncxxtcode{\textasciitilde} \\
333333
\end{floattable}
334334

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

583583
\item Otherwise, if the next three characters are \tcode{<::} and the subsequent character
@@ -695,15 +695,15 @@
695695
\begin{bnf}
696696
\nontermdef{pp-number}\br
697697
digit\br
698-
\terminal{.} digit\br
698+
\literalterminal{.} digit\br
699699
pp-number identifier-continue\br
700-
pp-number \terminal{'} digit\br
701-
pp-number \terminal{'} nondigit\br
702-
pp-number \terminal{e} sign\br
703-
pp-number \terminal{E} sign\br
704-
pp-number \terminal{p} sign\br
705-
pp-number \terminal{P} sign\br
706-
pp-number \terminal{.}
700+
pp-number \literalterminal{'} digit\br
701+
pp-number \literalterminal{'} nondigit\br
702+
pp-number \literalterminal{e} sign\br
703+
pp-number \literalterminal{E} sign\br
704+
pp-number \literalterminal{p} sign\br
705+
pp-number \literalterminal{P} sign\br
706+
pp-number \literalterminal{.}
707707
\end{bnf}
708708

709709
\pnum
@@ -1128,19 +1128,19 @@
11281128
\nontermdef{binary-literal}\br
11291129
\terminal{0b} binary-digit\br
11301130
\terminal{0B} binary-digit\br
1131-
binary-literal \opt{\terminal{'}} binary-digit
1131+
binary-literal \opt{\literalterminal{'}} binary-digit
11321132
\end{bnf}
11331133

11341134
\begin{bnf}
11351135
\nontermdef{octal-literal}\br
11361136
\terminal{0}\br
1137-
octal-literal \opt{\terminal{'}} octal-digit
1137+
octal-literal \opt{\literalterminal{'}} octal-digit
11381138
\end{bnf}
11391139

11401140
\begin{bnf}
11411141
\nontermdef{decimal-literal}\br
11421142
nonzero-digit\br
1143-
decimal-literal \opt{\terminal{'}} digit
1143+
decimal-literal \opt{\literalterminal{'}} digit
11441144
\end{bnf}
11451145

11461146
\begin{bnf}
@@ -1171,14 +1171,14 @@
11711171
\begin{bnf}
11721172
\nontermdef{hexadecimal-digit-sequence}\br
11731173
hexadecimal-digit\br
1174-
hexadecimal-digit-sequence \opt{\terminal{'}} hexadecimal-digit
1174+
hexadecimal-digit-sequence \opt{\literalterminal{'}} hexadecimal-digit
11751175
\end{bnf}
11761176

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

11841184
\begin{bnf}
@@ -1193,17 +1193,17 @@
11931193

11941194
\begin{bnf}
11951195
\nontermdef{unsigned-suffix} \textnormal{one of}\br
1196-
\terminal{u U}
1196+
\literalterminal{u U}
11971197
\end{bnf}
11981198

11991199
\begin{bnf}
12001200
\nontermdef{long-suffix} \textnormal{one of}\br
1201-
\terminal{l L}
1201+
\literalterminal{l L}
12021202
\end{bnf}
12031203

12041204
\begin{bnf}
12051205
\nontermdef{long-long-suffix} \textnormal{one of}\br
1206-
\terminal{ll LL}
1206+
\literalterminal{ll LL}
12071207
\end{bnf}
12081208

12091209
\begin{bnf}
@@ -1242,7 +1242,7 @@
12421242

12431243
\pnum
12441244
The \grammarterm{hexadecimal-digit}s
1245-
\tcode{a} through \tcode{f} and \tcode{A} through \tcode{F}
1245+
\literaltcode{a} through \literaltcode{f} and \literaltcode{A} through \literaltcode{F}
12461246
have decimal values ten through fifteen.
12471247
\begin{example}
12481248
The number twelve can be written \tcode{12}, \tcode{014},
@@ -1286,7 +1286,7 @@
12861286
&
12871287
&
12881288
\tcode{unsigned long long int}\\\hline
1289-
\tcode{u} or \tcode{U} &
1289+
\literaltcode{u} or \literaltcode{U} &
12901290
\tcode{unsigned int} &
12911291
\tcode{unsigned int}\\
12921292
&
@@ -1295,7 +1295,7 @@
12951295
&
12961296
\tcode{unsigned long long int} &
12971297
\tcode{unsigned long long int}\\\hline
1298-
\tcode{l} or \tcode{L} &
1298+
\literaltcode{l} or \literaltcode{L} &
12991299
\tcode{long int} &
13001300
\tcode{long int}\\
13011301
&
@@ -1307,22 +1307,22 @@
13071307
&
13081308
&
13091309
\tcode{unsigned long long int}\\\hline
1310-
Both \tcode{u} or \tcode{U} &
1310+
Both \literaltcode{u} or \literaltcode{U} &
13111311
\tcode{unsigned long int} &
13121312
\tcode{unsigned long int}\\
1313-
and \tcode{l} or \tcode{L} &
1313+
and \literaltcode{l} or \literaltcode{L} &
13141314
\tcode{unsigned long long int} &
13151315
\tcode{unsigned long long int}\\\hline
1316-
\tcode{ll} or \tcode{LL} &
1316+
\literaltcode{ll} or \literaltcode{LL} &
13171317
\tcode{long long int} &
13181318
\tcode{long long int}\\
13191319
&
13201320
&
13211321
\tcode{unsigned long long int}\\\hline
1322-
Both \tcode{u} or \tcode{U} &
1322+
Both \literaltcode{u} or \literaltcode{U} &
13231323
\tcode{unsigned long long int} &
13241324
\tcode{unsigned long long int}\\
1325-
and \tcode{ll} or \tcode{LL} &
1325+
and \literaltcode{ll} or \literaltcode{LL} &
13261326
&
13271327
\\\hline
13281328
\tcode{z} or \tcode{Z} &
@@ -1370,12 +1370,12 @@
13701370
\indextext{literal!character}%
13711371
\begin{bnf}
13721372
\nontermdef{character-literal}\br
1373-
\opt{encoding-prefix} \terminal{'} c-char-sequence \terminal{'}
1373+
\opt{encoding-prefix} \literalterminal{'} c-char-sequence \literalterminal{'}
13741374
\end{bnf}
13751375

13761376
\begin{bnf}
13771377
\nontermdef{encoding-prefix} \textnormal{one of}\br
1378-
\terminal{u8}\quad\terminal{u}\quad\terminal{U}\quad\terminal{L}
1378+
\literalterminal{u8}\quad\literalterminal{u}\quad\literalterminal{U}\quad\literalterminal{L}
13791379
\end{bnf}
13801380

13811381
\begin{bnf}
@@ -1426,16 +1426,16 @@
14261426

14271427
\begin{bnf}
14281428
\nontermdef{octal-escape-sequence}\br
1429-
\terminal{\textbackslash} octal-digit\br
1430-
\terminal{\textbackslash} octal-digit octal-digit\br
1431-
\terminal{\textbackslash} octal-digit octal-digit octal-digit\br
1432-
\terminal{\textbackslash o\{} simple-octal-digit-sequence \terminal{\}}
1429+
\literalterminal{\textbackslash} octal-digit\br
1430+
\literalterminal{\textbackslash} octal-digit octal-digit\br
1431+
\literalterminal{\textbackslash} octal-digit octal-digit octal-digit\br
1432+
\literalterminal{\textbackslash o\{} simple-octal-digit-sequence \literalterminal{\}}
14331433
\end{bnf}
14341434

14351435
\begin{bnf}
14361436
\nontermdef{hexadecimal-escape-sequence}\br
1437-
\terminal{\textbackslash x} simple-hexadecimal-digit-sequence\br
1438-
\terminal{\textbackslash x\{} simple-hexadecimal-digit-sequence \terminal{\}}
1437+
\literalterminal{\textbackslash x} simple-hexadecimal-digit-sequence\br
1438+
\literalterminal{\textbackslash x\{} simple-hexadecimal-digit-sequence \literalterminal{\}}
14391439
\end{bnf}
14401440

14411441
\begin{bnf}
@@ -1623,42 +1623,42 @@
16231623

16241624
\begin{bnf}
16251625
\nontermdef{fractional-constant}\br
1626-
\opt{digit-sequence} \terminal{.} digit-sequence\br
1627-
digit-sequence \terminal{.}
1626+
\opt{digit-sequence} \literalterminal{.} digit-sequence\br
1627+
digit-sequence \literalterminal{.}
16281628
\end{bnf}
16291629

16301630
\begin{bnf}
16311631
\nontermdef{hexadecimal-fractional-constant}\br
1632-
\opt{hexadecimal-digit-sequence} \terminal{.} hexadecimal-digit-sequence\br
1633-
hexadecimal-digit-sequence \terminal{.}
1632+
\opt{hexadecimal-digit-sequence} \literalterminal{.} hexadecimal-digit-sequence\br
1633+
hexadecimal-digit-sequence \literalterminal{.}
16341634
\end{bnf}
16351635

16361636
\begin{bnf}
16371637
\nontermdef{exponent-part}\br
1638-
\terminal{e} \opt{sign} digit-sequence\br
1639-
\terminal{E} \opt{sign} digit-sequence
1638+
\literalterminal{e} \opt{sign} digit-sequence\br
1639+
\literalterminal{E} \opt{sign} digit-sequence
16401640
\end{bnf}
16411641

16421642
\begin{bnf}
16431643
\nontermdef{binary-exponent-part}\br
1644-
\terminal{p} \opt{sign} digit-sequence\br
1645-
\terminal{P} \opt{sign} digit-sequence
1644+
\literalterminal{p} \opt{sign} digit-sequence\br
1645+
\literalterminal{P} \opt{sign} digit-sequence
16461646
\end{bnf}
16471647

16481648
\begin{bnf}
16491649
\nontermdef{sign} \textnormal{one of}\br
1650-
\terminal{+ -}
1650+
\literalterminal{+ -}
16511651
\end{bnf}
16521652

16531653
\begin{bnf}
16541654
\nontermdef{digit-sequence}\br
16551655
digit\br
1656-
digit-sequence \opt{\terminal{'}} digit
1656+
digit-sequence \opt{\literalterminal{'}} digit
16571657
\end{bnf}
16581658

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

16641664
\pnum
@@ -1743,8 +1743,8 @@
17431743
\indextext{literal!string}%
17441744
\begin{bnf}
17451745
\nontermdef{string-literal}\br
1746-
\opt{encoding-prefix} \terminal{"} \opt{s-char-sequence} \terminal{"}\br
1747-
\opt{encoding-prefix} \terminal{R} raw-string
1746+
\opt{encoding-prefix} \literalterminal{"} \opt{s-char-sequence} \literalterminal{"}\br
1747+
\opt{encoding-prefix} \literalterminal{R} raw-string
17481748
\end{bnf}
17491749

17501750
\begin{bnf}
@@ -1767,7 +1767,7 @@
17671767

17681768
\begin{bnf}
17691769
\nontermdef{raw-string}\br
1770-
\terminal{"} \opt{d-char-sequence} \terminal{(} \opt{r-char-sequence} \terminal{)} \opt{d-char-sequence} \terminal{"}
1770+
\literalterminal{"} \opt{d-char-sequence} \literalterminal{(} \opt{r-char-sequence} \literalterminal{)} \opt{d-char-sequence} \literalterminal{"}
17711771
\end{bnf}
17721772

17731773
\begin{bnf}
@@ -1854,7 +1854,7 @@
18541854

18551855
\pnum
18561856
\indextext{literal!string!raw}%
1857-
A \grammarterm{string-literal} that has an \tcode{R}
1857+
A \grammarterm{string-literal} that has an \literaltcode{R}
18581858
\indextext{prefix!\idxcode{R}}%
18591859
in the prefix is a \defn{raw string literal}. The
18601860
\grammarterm{d-char-sequence} serves as a delimiter. The terminating

0 commit comments

Comments
 (0)