|
293 | 293 | \ucode{000c} & \uname{form feed} & \\
|
294 | 294 | \ucode{0020} & \uname{space} & \\
|
295 | 295 | \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} \\ |
333 | 333 | \end{floattable}
|
334 | 334 |
|
335 | 335 | \pnum
|
|
569 | 569 | \item
|
570 | 570 | \indextext{literal!string!raw}%
|
571 | 571 | 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 |
573 | 573 | token shall be a raw string literal. Between the initial and final
|
574 | 574 | double quote characters of the raw string, any transformations performed in phase
|
575 | 575 | 2 (line splicing) are reverted; this reversion
|
576 | 576 | shall apply before any \grammarterm{d-char}, \grammarterm{r-char}, or delimiting
|
577 | 577 | parenthesis is identified. The raw string literal is defined as the shortest sequence
|
578 | 578 | of characters that matches the raw-string pattern
|
579 | 579 | \begin{ncbnf}
|
580 |
| -\opt{encoding-prefix} \terminal{R} raw-string |
| 580 | +\opt{encoding-prefix} \literalterminal{R} raw-string |
581 | 581 | \end{ncbnf}
|
582 | 582 |
|
583 | 583 | \item Otherwise, if the next three characters are \tcode{<::} and the subsequent character
|
|
702 | 702 | \begin{bnf}
|
703 | 703 | \nontermdef{pp-number}\br
|
704 | 704 | digit\br
|
705 |
| - \terminal{.} digit\br |
| 705 | + \literalterminal{.} digit\br |
706 | 706 | pp-number identifier-continue\br
|
707 |
| - pp-number \terminal{'} digit\br |
708 |
| - pp-number \terminal{'} nondigit\br |
709 |
| - pp-number \terminal{e} sign\br |
710 |
| - pp-number \terminal{E} sign\br |
711 |
| - pp-number \terminal{p} sign\br |
712 |
| - pp-number \terminal{P} sign\br |
713 |
| - pp-number \terminal{.} |
| 707 | + pp-number \literalterminal{'} digit\br |
| 708 | + pp-number \literalterminal{'} nondigit\br |
| 709 | + pp-number \literalterminal{e} sign\br |
| 710 | + pp-number \literalterminal{E} sign\br |
| 711 | + pp-number \literalterminal{p} sign\br |
| 712 | + pp-number \literalterminal{P} sign\br |
| 713 | + pp-number \literalterminal{.} |
714 | 714 | \end{bnf}
|
715 | 715 |
|
716 | 716 | \pnum
|
|
1137 | 1137 | \nontermdef{binary-literal}\br
|
1138 | 1138 | \terminal{0b} binary-digit\br
|
1139 | 1139 | \terminal{0B} binary-digit\br
|
1140 |
| - binary-literal \opt{\terminal{'}} binary-digit |
| 1140 | + binary-literal \opt{\literalterminal{'}} binary-digit |
1141 | 1141 | \end{bnf}
|
1142 | 1142 |
|
1143 | 1143 | \begin{bnf}
|
1144 | 1144 | \nontermdef{octal-literal}\br
|
1145 | 1145 | \terminal{0}\br
|
1146 |
| - octal-literal \opt{\terminal{'}} octal-digit |
| 1146 | + octal-literal \opt{\literalterminal{'}} octal-digit |
1147 | 1147 | \end{bnf}
|
1148 | 1148 |
|
1149 | 1149 | \begin{bnf}
|
1150 | 1150 | \nontermdef{decimal-literal}\br
|
1151 | 1151 | nonzero-digit\br
|
1152 |
| - decimal-literal \opt{\terminal{'}} digit |
| 1152 | + decimal-literal \opt{\literalterminal{'}} digit |
1153 | 1153 | \end{bnf}
|
1154 | 1154 |
|
1155 | 1155 | \begin{bnf}
|
|
1180 | 1180 | \begin{bnf}
|
1181 | 1181 | \nontermdef{hexadecimal-digit-sequence}\br
|
1182 | 1182 | hexadecimal-digit\br
|
1183 |
| - hexadecimal-digit-sequence \opt{\terminal{'}} hexadecimal-digit |
| 1183 | + hexadecimal-digit-sequence \opt{\literalterminal{'}} hexadecimal-digit |
1184 | 1184 | \end{bnf}
|
1185 | 1185 |
|
1186 | 1186 | \begin{bnf}
|
1187 | 1187 | \nontermdef{hexadecimal-digit} \textnormal{one of}\br
|
1188 |
| - \terminal{0 1 2 3 4 5 6 7 8 9}\br |
1189 |
| - \terminal{a b c d e f}\br |
1190 |
| - \terminal{A B C D E F} |
| 1188 | + \literalterminal{0 1 2 3 4 5 6 7 8 9}\br |
| 1189 | + \literalterminal{a b c d e f}\br |
| 1190 | + \literalterminal{A B C D E F} |
1191 | 1191 | \end{bnf}
|
1192 | 1192 |
|
1193 | 1193 | \begin{bnf}
|
|
1202 | 1202 |
|
1203 | 1203 | \begin{bnf}
|
1204 | 1204 | \nontermdef{unsigned-suffix} \textnormal{one of}\br
|
1205 |
| - \terminal{u U} |
| 1205 | + \literalterminal{u U} |
1206 | 1206 | \end{bnf}
|
1207 | 1207 |
|
1208 | 1208 | \begin{bnf}
|
1209 | 1209 | \nontermdef{long-suffix} \textnormal{one of}\br
|
1210 |
| - \terminal{l L} |
| 1210 | + \literalterminal{l L} |
1211 | 1211 | \end{bnf}
|
1212 | 1212 |
|
1213 | 1213 | \begin{bnf}
|
1214 | 1214 | \nontermdef{long-long-suffix} \textnormal{one of}\br
|
1215 |
| - \terminal{ll LL} |
| 1215 | + \literalterminal{ll LL} |
1216 | 1216 | \end{bnf}
|
1217 | 1217 |
|
1218 | 1218 | \begin{bnf}
|
|
1251 | 1251 |
|
1252 | 1252 | \pnum
|
1253 | 1253 | The \grammarterm{hexadecimal-digit}s
|
1254 |
| -\tcode{a} through \tcode{f} and \tcode{A} through \tcode{F} |
| 1254 | +\literaltcode{a} through \literaltcode{f} and \literaltcode{A} through \literaltcode{F} |
1255 | 1255 | have decimal values ten through fifteen.
|
1256 | 1256 | \begin{example}
|
1257 | 1257 | The number twelve can be written \tcode{12}, \tcode{014},
|
|
1295 | 1295 | &
|
1296 | 1296 | &
|
1297 | 1297 | \tcode{unsigned long long int}\\\hline
|
1298 |
| -\tcode{u} or \tcode{U} & |
| 1298 | +\literaltcode{u} or \literaltcode{U} & |
1299 | 1299 | \tcode{unsigned int} &
|
1300 | 1300 | \tcode{unsigned int}\\
|
1301 | 1301 | &
|
|
1304 | 1304 | &
|
1305 | 1305 | \tcode{unsigned long long int} &
|
1306 | 1306 | \tcode{unsigned long long int}\\\hline
|
1307 |
| -\tcode{l} or \tcode{L} & |
| 1307 | +\literaltcode{l} or \literaltcode{L} & |
1308 | 1308 | \tcode{long int} &
|
1309 | 1309 | \tcode{long int}\\
|
1310 | 1310 | &
|
|
1316 | 1316 | &
|
1317 | 1317 | &
|
1318 | 1318 | \tcode{unsigned long long int}\\\hline
|
1319 |
| -Both \tcode{u} or \tcode{U} & |
| 1319 | +Both \literaltcode{u} or \literaltcode{U} & |
1320 | 1320 | \tcode{unsigned long int} &
|
1321 | 1321 | \tcode{unsigned long int}\\
|
1322 |
| -and \tcode{l} or \tcode{L} & |
| 1322 | +and \literaltcode{l} or \literaltcode{L} & |
1323 | 1323 | \tcode{unsigned long long int} &
|
1324 | 1324 | \tcode{unsigned long long int}\\\hline
|
1325 |
| -\tcode{ll} or \tcode{LL} & |
| 1325 | +\literaltcode{ll} or \literaltcode{LL} & |
1326 | 1326 | \tcode{long long int} &
|
1327 | 1327 | \tcode{long long int}\\
|
1328 | 1328 | &
|
1329 | 1329 | &
|
1330 | 1330 | \tcode{unsigned long long int}\\\hline
|
1331 |
| -Both \tcode{u} or \tcode{U} & |
| 1331 | +Both \literaltcode{u} or \literaltcode{U} & |
1332 | 1332 | \tcode{unsigned long long int} &
|
1333 | 1333 | \tcode{unsigned long long int}\\
|
1334 |
| -and \tcode{ll} or \tcode{LL} & |
| 1334 | +and \literaltcode{ll} or \literaltcode{LL} & |
1335 | 1335 | &
|
1336 | 1336 | \\\hline
|
1337 | 1337 | \tcode{z} or \tcode{Z} &
|
|
1379 | 1379 | \indextext{literal!character}%
|
1380 | 1380 | \begin{bnf}
|
1381 | 1381 | \nontermdef{character-literal}\br
|
1382 |
| - \opt{encoding-prefix} \terminal{'} c-char-sequence \terminal{'} |
| 1382 | + \opt{encoding-prefix} \literalterminal{'} c-char-sequence \literalterminal{'} |
1383 | 1383 | \end{bnf}
|
1384 | 1384 |
|
1385 | 1385 | \begin{bnf}
|
1386 | 1386 | \nontermdef{encoding-prefix} \textnormal{one of}\br
|
1387 |
| - \terminal{u8}\quad\terminal{u}\quad\terminal{U}\quad\terminal{L} |
| 1387 | + \literalterminal{u8}\quad\literalterminal{u}\quad\literalterminal{U}\quad\literalterminal{L} |
1388 | 1388 | \end{bnf}
|
1389 | 1389 |
|
1390 | 1390 | \begin{bnf}
|
|
1435 | 1435 |
|
1436 | 1436 | \begin{bnf}
|
1437 | 1437 | \nontermdef{octal-escape-sequence}\br
|
1438 |
| - \terminal{\textbackslash} octal-digit\br |
1439 |
| - \terminal{\textbackslash} octal-digit octal-digit\br |
1440 |
| - \terminal{\textbackslash} octal-digit octal-digit octal-digit\br |
1441 |
| - \terminal{\textbackslash o\{} simple-octal-digit-sequence \terminal{\}} |
| 1438 | + \literalterminal{\textbackslash} octal-digit\br |
| 1439 | + \literalterminal{\textbackslash} octal-digit octal-digit\br |
| 1440 | + \literalterminal{\textbackslash} octal-digit octal-digit octal-digit\br |
| 1441 | + \literalterminal{\textbackslash o\{} simple-octal-digit-sequence \literalterminal{\}} |
1442 | 1442 | \end{bnf}
|
1443 | 1443 |
|
1444 | 1444 | \begin{bnf}
|
1445 | 1445 | \nontermdef{hexadecimal-escape-sequence}\br
|
1446 |
| - \terminal{\textbackslash x} simple-hexadecimal-digit-sequence\br |
1447 |
| - \terminal{\textbackslash x\{} simple-hexadecimal-digit-sequence \terminal{\}} |
| 1446 | + \literalterminal{\textbackslash x} simple-hexadecimal-digit-sequence\br |
| 1447 | + \literalterminal{\textbackslash x\{} simple-hexadecimal-digit-sequence \literalterminal{\}} |
1448 | 1448 | \end{bnf}
|
1449 | 1449 |
|
1450 | 1450 | \begin{bnf}
|
|
1632 | 1632 |
|
1633 | 1633 | \begin{bnf}
|
1634 | 1634 | \nontermdef{fractional-constant}\br
|
1635 |
| - \opt{digit-sequence} \terminal{.} digit-sequence\br |
1636 |
| - digit-sequence \terminal{.} |
| 1635 | + \opt{digit-sequence} \literalterminal{.} digit-sequence\br |
| 1636 | + digit-sequence \literalterminal{.} |
1637 | 1637 | \end{bnf}
|
1638 | 1638 |
|
1639 | 1639 | \begin{bnf}
|
1640 | 1640 | \nontermdef{hexadecimal-fractional-constant}\br
|
1641 |
| - \opt{hexadecimal-digit-sequence} \terminal{.} hexadecimal-digit-sequence\br |
1642 |
| - hexadecimal-digit-sequence \terminal{.} |
| 1641 | + \opt{hexadecimal-digit-sequence} \literalterminal{.} hexadecimal-digit-sequence\br |
| 1642 | + hexadecimal-digit-sequence \literalterminal{.} |
1643 | 1643 | \end{bnf}
|
1644 | 1644 |
|
1645 | 1645 | \begin{bnf}
|
1646 | 1646 | \nontermdef{exponent-part}\br
|
1647 |
| - \terminal{e} \opt{sign} digit-sequence\br |
1648 |
| - \terminal{E} \opt{sign} digit-sequence |
| 1647 | + \literalterminal{e} \opt{sign} digit-sequence\br |
| 1648 | + \literalterminal{E} \opt{sign} digit-sequence |
1649 | 1649 | \end{bnf}
|
1650 | 1650 |
|
1651 | 1651 | \begin{bnf}
|
1652 | 1652 | \nontermdef{binary-exponent-part}\br
|
1653 |
| - \terminal{p} \opt{sign} digit-sequence\br |
1654 |
| - \terminal{P} \opt{sign} digit-sequence |
| 1653 | + \literalterminal{p} \opt{sign} digit-sequence\br |
| 1654 | + \literalterminal{P} \opt{sign} digit-sequence |
1655 | 1655 | \end{bnf}
|
1656 | 1656 |
|
1657 | 1657 | \begin{bnf}
|
1658 | 1658 | \nontermdef{sign} \textnormal{one of}\br
|
1659 |
| - \terminal{+ -} |
| 1659 | + \literalterminal{+ -} |
1660 | 1660 | \end{bnf}
|
1661 | 1661 |
|
1662 | 1662 | \begin{bnf}
|
1663 | 1663 | \nontermdef{digit-sequence}\br
|
1664 | 1664 | digit\br
|
1665 |
| - digit-sequence \opt{\terminal{'}} digit |
| 1665 | + digit-sequence \opt{\literalterminal{'}} digit |
1666 | 1666 | \end{bnf}
|
1667 | 1667 |
|
1668 | 1668 | \begin{bnf}
|
1669 | 1669 | \nontermdef{floating-point-suffix} \textnormal{one of}\br
|
1670 |
| - \terminal{f l f16 f32 f64 f128 bf16 F L F16 F32 F64 F128 BF16} |
| 1670 | + \literalterminal{f l f16 f32 f64 f128 bf16 F L F16 F32 F64 F128 BF16} |
1671 | 1671 | \end{bnf}
|
1672 | 1672 |
|
1673 | 1673 | \pnum
|
|
1752 | 1752 | \indextext{literal!string}%
|
1753 | 1753 | \begin{bnf}
|
1754 | 1754 | \nontermdef{string-literal}\br
|
1755 |
| - \opt{encoding-prefix} \terminal{"} \opt{s-char-sequence} \terminal{"}\br |
1756 |
| - \opt{encoding-prefix} \terminal{R} raw-string |
| 1755 | + \opt{encoding-prefix} \literalterminal{"} \opt{s-char-sequence} \literalterminal{"}\br |
| 1756 | + \opt{encoding-prefix} \literalterminal{R} raw-string |
1757 | 1757 | \end{bnf}
|
1758 | 1758 |
|
1759 | 1759 | \begin{bnf}
|
|
1776 | 1776 |
|
1777 | 1777 | \begin{bnf}
|
1778 | 1778 | \nontermdef{raw-string}\br
|
1779 |
| - \terminal{"} \opt{d-char-sequence} \terminal{(} \opt{r-char-sequence} \terminal{)} \opt{d-char-sequence} \terminal{"} |
| 1779 | + \literalterminal{"} \opt{d-char-sequence} \literalterminal{(} \opt{r-char-sequence} \literalterminal{)} \opt{d-char-sequence} \literalterminal{"} |
1780 | 1780 | \end{bnf}
|
1781 | 1781 |
|
1782 | 1782 | \begin{bnf}
|
|
1863 | 1863 |
|
1864 | 1864 | \pnum
|
1865 | 1865 | \indextext{literal!string!raw}%
|
1866 |
| -A \grammarterm{string-literal} that has an \tcode{R} |
| 1866 | +A \grammarterm{string-literal} that has an \literaltcode{R} |
1867 | 1867 | \indextext{prefix!\idxcode{R}}%
|
1868 | 1868 | in the prefix is a \defn{raw string literal}. The
|
1869 | 1869 | \grammarterm{d-char-sequence} serves as a delimiter. The terminating
|
|
0 commit comments