Debian Codegraph @

texk/web2c/cwebdir/prod.w

raw
1 % This file is part of CWEB.
2 % This program by Silvio Levy and Donald E. Knuth
3 % is based on a program by Knuth.
4 % It is distributed WITHOUT ANY WARRANTY, express or implied.
5 % Version 4.12.2 --- July 2025
6 %
7 @ Here is a table of all the productions. Each production that
8 combines two or more consecutive scraps implicitly inserts a {\tt \$}
9 where necessary, that is, between scraps whose abutting boundaries
10 have different |mathness|. In this way we never get double {\tt\$\$}.
11
12 % The following kludge is needed because \newcount, \newdimen, and \+
13 % are "\outer" control sequences that cannot be used in skipped text!
14 \fi \newcount\prodno \newdimen\midcol \let\+\relax \ifon
15
16 \def\v{\char'174}
17 \mathchardef\RA="3221 % right arrow
18 \mathchardef\BA="3224 % double arrow
19
20 A translation is provided when the resulting scrap is not merely a
21 juxtaposition of the scraps it comes from. An asterisk$^*$ next to a scrap
22 means that its first identifier gets an underlined entry in the index,
23 via the function |make_underlined|. Two asterisks$^{**}$ means that both
24 |make_underlined| and |make_reserved| are called; that is, the
25 identifier's ilk becomes |raw_int|. A dagger \dag\ before the
26 production number refers to the notes at the end of this section,
27 which deal with various exceptional cases.
28
29 We use \\{in}, \\{out}, \\{back}, \\{bsp}, and \\{din} as shorthands for
30 |indent|, |outdent|, |backup|, |break_space|, and |dindent|, respectively.
31
32 \begingroup \lineskip=4pt
33 \def\alt #1 #2
34 {$\displaystyle\Bigl\{\!\matrix{\strut\hbox{#1}\cr
35 \strut\hbox{#2}\cr}\!\Bigr\}$ }
36 \def\altt #1 #2 #3
37 {$\displaystyle\Biggl\{\!\matrix{\strut\hbox{#1}\cr\hbox{#2}\cr
38 \strut\hbox{#3}\cr}\!\Biggr\}$ }
39 \def\malt #1 #2
40 {$\displaystyle\!\matrix{\strut\hbox{#1}\hfill\cr\strut\hbox{#2}\hfill\cr}$}
41 \def\maltt #1 #2 #3
42 {$\displaystyle\!\matrix{\strut\hbox{#1}\hfill\cr\hbox{#2}\hfill\cr
43 \strut\hbox{#3}\hfill\cr}$}
44 \yskip
45 \prodno=0 \midcol=2.5in
46 \def\theprodno{\number\prodno \global\advance\prodno by1\enspace}
47 \def\dagit{\dag\theprodno}
48 \def\+#1&#2&#3&#4\cr{\def\next{#1}%
49 \line{\hbox to 2em{\hss
50 \ifx\next\empty\theprodno\else\next\fi}\strut
51 \ignorespaces#2\hfil\hbox to\midcol{$\RA$
52 \ignorespaces#3\hfil}\quad \hbox to1.45in{\ignorespaces#4\hfil}}}
53 \+\relax & LHS & RHS \hfill Translation & Example\cr
54 \yskip
55 \+& \altt\\{any} {\\{any} \\{any}} {\\{any} \\{any} \\{any}}
56 |insert| & \altt\\{any} {\\{any} \\{any}} {\\{any} \\{any} \\{any}}
57 & stmt; \4\4 \C{comment}\cr
58 \+& |exp| \altt|lbrace| |int_like| |decl|
59 & |fn_decl| \altt|lbrace| |int_like| |decl| \hfill $F=\\{din}\,E^*$
60 & \malt {\\{main}(\,) $\{$}
61 {$\\{main}(\\{ac},\\{av}){}$ \&{int} \\{ac};} \cr
62 \+& |exp| |unop| & |exp| & $x\PP$ \cr
63 \+& |exp| \alt |binop| |ubinop| |exp| & |exp| & \malt {$x/y$} {$x+y$} \cr
64 \+& |exp| |comma| |exp| & |exp| \hfill $E_1C\,|opt|9\,E_2$ & $f(x,y)$ \cr
65 \+& |exp| \alt {|lpar| |rpar|} |cast| |colon|
66 & |exp| \alt {|lpar| |rpar|} |cast| |base|
67 & \malt {\&C(\,) :} {\&C(\&{int} $i$) :} \cr
68 \+& |exp| |semi| & |stmt| & $x=0;$ \cr
69 \+& |exp| |colon| & |tag| \hfill $E^*C$ & \\{found}: \cr
70 \+& |exp| |rbrace| & |stmt| |rbrace| & end of \&{enum} list\cr
71 \+& |exp| \alt {|lpar| |rpar|} |cast| \alt|const_like| |case_like|
72 & |exp| \alt {|lpar| |rpar|} |cast| \hfill
73 \alt $R=R\.\ C$ $C_1=C_1\.\ C_2$
74 & \malt {$f$(\,) \&{const}} {$f$(\&{int}) \&{throw}} \cr
75 \+& |exp| \alt |exp| |cast| & |exp| & \\{time}(\,) \cr
76 \+& |lpar| \alt |exp| |ubinop| |rpar| & |exp| & \malt{($x$)} {$(*)$} \cr
77 \+& |lpar| |rpar| & |exp| \hfill $L\.{\\,}R$ & functions, declarations\cr
78 \+& |lpar| \altt |decl_head| |int_like| |cast| |rpar| & |cast| & |(char*)|\cr
79 \+& |lpar| \altt |decl_head| |int_like| |exp| |comma| & |lpar| \hfill
80 $L$\,\altt $D$ $I$ $E$ \unskip $C$\,|opt|9 & |(int,|\cr
81 \+& |lpar| \alt |stmt| |decl| & |lpar| \hfill \alt {$LS\.\ $} {$LD\.\ $}
82 & \malt {$(k=5;$} {(\&{int} $k=5;$} \cr
83 \+& |unop| \alt |exp| |int_like| & |exp|
84 & \malt {$\R x$} {$\CM\&C$} \cr
85 \+& |ubinop| |cast| |rpar| & |cast| |rpar| \hfill
86 $C=\.\{U\.\}C$ & |*|\&{CPtr}) \cr
87 \+& |ubinop| \alt|exp| |int_like| & \alt|exp| |int_like| \hfill
88 \.\{$U$\.\}\alt$E$ $I$ & \malt {${*}x$} {${*}\&{CPtr}$} \cr
89 \+& |ubinop| |binop| & |binop| \hfill $|math_rel|\,U\.\{B\.\}\.\}$ & |*=|\cr
90 \+& |binop| |binop| & |binop| \hfill
91 $|math_rel|\,\.\{B_1\.\}\.\{B_2\.\}\.\}$ & |>>=|\cr
92 \+& |cast| \alt |lpar| |exp| & \alt |lpar| |exp| \hfill
93 \alt $CL$ $C\.{\\,}E$ & \malt {$(\&{double})(x+2)$} {(\&{double})\,$x$} \cr
94 \+& |cast| |semi| & |exp| |semi| & |(int);|\cr
95 \+& |sizeof_like| |cast| & |exp| & |sizeof (double)|\cr
96 \+& |sizeof_like| |exp| & |exp| \hfill $S\.\ E$ & \&{sizeof} $x$\cr
97 \+& |int_like| \alt|int_like| |struct_like| &
98 \alt|int_like| |struct_like| \hfill $I\.\ $\alt $I$ $S$
99 \unskip & |extern char|\cr
100 \+& |int_like| |exp| \alt|raw_int| |struct_like| &
101 |int_like| \alt|raw_int| |struct_like| & |extern "Ada" int|\cr
102 \+& |int_like| \altt|exp| |ubinop| |colon| &
103 |decl_head| \altt|exp| |ubinop| |colon| \hfill $D=I$\.\ %
104 & \maltt {\&{int} $x$} {\&{int} ${}{*}x$} {\&{unsigned} :} \cr
105 \+& |int_like| \alt |semi| |binop| & |decl_head| \alt |semi| |binop|
106 & \malt {\&{int} $x$;} {\&{int} $f(\&{int}=4)$} \cr
107 \+& |public_like| |colon| & |tag| & |private:|\cr
108 \+& |public_like| & |int_like| & |private|\cr
109 \+& |colcol| \alt|exp| |int_like| & \alt|exp| |int_like| \hfill
110 |qualifier| $C$\alt$E$ $I$ & \&C\DC$x$\cr
111 \+& |colcol| |colcol| & |colcol| & \&C\DC\&B\DC\cr
112 \+& |decl_head| |comma| & |decl_head| \hfill $DC$\,|opt|9 & \&{int} $x,{}$ \cr
113 \+& |decl_head| |ubinop| & |decl_head| \hfill $D\.\{U\.\}$ & |int *|\cr
114 \+\dagit& |decl_head| |exp| & |decl_head| \hfill $DE^*$ & \&{int} $x$ \cr
115 \+& |decl_head| \alt|binop| |colon| |exp| \altt|comma| |semi| |rpar| &
116 |decl_head| \altt|comma| |semi| |rpar| \hfill
117 $D=D$\alt $B$ $C$ \unskip $E$
118 & \malt {\&{int} $f(\&{int}\ x=2)$} {\&{int} $b$ : 1} \cr
119 \+& |decl_head| |cast| & |decl_head| & \&{int} $f$(\&{int})\cr
120 \+& |decl_head| \altt|int_like| |lbrace| |decl| & |fn_decl|
121 \altt|int_like| |lbrace| |decl| \hfill $F=\\{din}\,D$
122 & \&{long} \\{time}(\,) $\{$\cr
123 \+& |decl_head| |semi| & |decl| & \&{int} $n$;\cr
124 \+& |decl| |decl| & |decl| \hfill $D_1\,|force|\,D_2$
125 & \&{int} $n$; \&{double} $x$;\cr
126 \+& |decl| \alt|stmt| |function| & \alt|stmt| |function|
127 \hfill $D\,|big_force|\,$\alt $S$ $F$ \unskip
128 & \&{extern} $n$; \\{main}(\,) $\{\,\}$\cr
129 \+& |base| \alt |int_like| |exp| |comma| & |base| \hfill
130 $B$\.\ \alt $I$ $E$ \unskip $C$\,|opt|9
131 & \malt {: \&{public} \&A,} {: $i$(5),} \cr
132 \+& |base| \alt |int_like| |exp| |lbrace| & |lbrace| \hfill
133 $B$\.\ \alt $I$ $E$ \unskip \.\ $L$ & \&D : \&{public} \&A $\{$\cr
134 \+& |struct_like| |lbrace| & |struct_head| \hfill $S\.\ L$ & |struct {|\cr
135 \+& |struct_like| \alt|exp| |int_like| |semi| & |decl_head| |semi|
136 \hfill $S\.\ $\alt $E^{**}$ $I^{**}$ & \&{struct} \&{forward};\cr
137 \+& |struct_like| \alt|exp| |int_like| |lbrace| & |struct_head| \hfill
138 $S\.\ $\alt $E^{**}$ $I^{**}$ \unskip $\.\ L$
139 & \&{struct} \&{name\_info} $\{$\cr
140 \+& |struct_like| \alt|exp| |int_like| |colon| &
141 |struct_like| \alt|exp| |int_like| |base| & |class| \&C :\cr
142 \+\dagit& |struct_like| \alt|exp| |int_like| & |int_like|
143 \hfill $S\.\ $\alt$E$ $I$ \unskip & \&{struct} \&{name\_info} $z$;\cr
144 \+& |struct_head| \altt|decl| |stmt| |function| |rbrace| & |int_like|\hfill
145 $S\,\\{in}\,|force|$\altt$D$ $S$ $F$ \unskip $\\{out}\,|force|\,R$
146 & |struct {| declaration |}|\cr
147 \+& |struct_head| |rbrace| & |int_like|\hfill $S\.{\\,}R$
148 & \&{class} \&C $\{\,\}$\cr
149 \+& |fn_decl| |decl| & |fn_decl| \hfill $F\,|force|\,D$
150 & $f(z)$ \&{double} $z$; \cr
151 \+& |fn_decl| |stmt| & |function| \hfill $F\,|out|\,|out|\,|force|\,S$
152 & \\{main}() {\dots}\cr
153 \+& |function| \altt|stmt| |decl| |function| & \altt |stmt| |decl| |function|
154 \hfill $F\,|big_force|\,$\altt $S$ $D$ $F$ \unskip & outer block\cr
155 \+& |lbrace| |rbrace| & |stmt| \hfill $L\.{\\,}R$ & empty statement\cr
156 \advance\midcol35pt
157 \+\dagit& |lbrace| \altt|stmt| |decl| |function| |rbrace| & |stmt| \hfill
158 $|force|\,L\,\\{in}\,|force|\,S\,
159 |force|\,\\{back}\,R\,\\{out}\,|force|$ & compound statement\cr
160 \advance\midcol-20pt
161 \+& |lbrace| |exp| [|comma|] |rbrace| & |exp| & initializer\cr
162 \+& |if_like| |exp| & |if_clause| \hfill $I\.{\ }E$ & \&{if} ($z$)\cr
163 \+& |else_like| |colon| & |else_like| |base| & |try :|\cr
164 \+& |else_like| |lbrace| & |else_head| |lbrace| & |else {|\cr
165 \+& |else_like| |stmt| & |stmt| \hfill
166 $|force|\,E\,\\{in}\,\\{bsp}\,S\,\\{out}\,|force|$
167 & \&{else} $x=0;$\cr
168 \+& |else_head| \alt|stmt| |exp| & |stmt| \hfill
169 $|force|\,E\,\\{bsp}\,|noop|\,|cancel|\,S\,\\{force}$
170 & $\!\!$ \&{else} $\{x=0;\}$\cr
171 \+& |if_clause| |lbrace| & |if_head| |lbrace| & \&{if} ($x$) $\{$\cr
172 \+& |if_clause| |stmt| |else_like| |if_like| & |if_like| \hfill
173 $|force|\,I\,\\{in}\,\\{bsp}\,S\,\\{out}\,|force|\,E\,\.\ I$
174 & $\!\!$ \&{if} ($x$) $y$; \&{else} \&{if}\cr
175 \+& |if_clause| |stmt| |else_like| & |else_like| \hfill
176 $|force|\,I\,\\{in}\,\\{bsp}\,S\,\\{out}\,|force|\,E$
177 & $\!\!$ \&{if} ($x$) $y$; \&{else}\cr
178 \+& |if_clause| |stmt| & |else_like| |stmt| & $\!\!$ \&{if} ($x$) $y$;\cr
179 \+& |if_head| \alt|stmt| |exp| |else_like| |if_like| & |if_like| \hfill
180 $|force|\,I\,\\{bsp}\,|noop|\,|cancel|\,S\,|force|\,E\,\.\ I$
181 & $\!\!$ \&{if} ($x$) $\{\,y;\,\}$ \&{else} \&{if}\cr
182 \+& |if_head| \alt|stmt| |exp| |else_like| & |else_like| \hfill
183 $|force|\,I\,\\{bsp}\,|noop|\,|cancel|\,S\,|force|\,E$
184 & $\!\!$ \&{if} ($x$) $\{\,y;\,\}$ \&{else}\cr
185 \+& |if_head| \alt|stmt| |exp| & |else_head| \alt|stmt| |exp|
186 & $\!\!$ \&{if} ($x$) ${}\{\,y\,\}{}$\cr
187 \advance\midcol20pt
188 \+\dagit& |do_like| |stmt| |else_like| |semi| & |stmt| \hfill
189 $D\,\\{bsp}\,|noop|\,|cancel|\,S\,|cancel|\,|noop|\,\\{bsp}\,ES$%
190 & \&{do} $f$($x$); \&{while} ($g$($x$));\cr
191 \advance\midcol-20pt
192 \+& |case_like| |semi| & |stmt| & |return;|\cr
193 \+& |case_like| |colon| & |tag| & |default:|\cr
194 \+& |case_like| |exp| & |exp| \hfill $C\.\ E$ & |return 0|\cr
195 \+& |catch_like| \alt|cast| |exp| & |fn_decl| \hfill
196 $C$\,\\{din}\,\alt $C$ $E$ & |catch (...)|\cr
197 \+& |tag| |tag| & |tag| \hfill $T_1\,\\{bsp}\,T_2$ & |case 0: case 1:|\cr
198 \+& |tag| \altt|stmt| |decl| |function| & \altt|stmt| |decl| |function|
199 \hfill $|force|\,\\{back}\,T\,\\{bsp}\,S$
200 & $\!\!$ \&{case} 0: $z=0;$\cr
201 \+\dagit& |stmt| \altt|stmt| |decl| |function| &
202 \altt|stmt| |decl| |function|
203 \hfill $S\,$\altt$|force|\,S$ $|big_force|\,D$ $|big_force|\,F$ \unskip
204 & $x=1;$ $y=2;$\cr
205 \+& |semi| & |stmt| \hfill \.\ $S$& empty statement\cr
206 \+\dagit& |lproc| \altt |if_like| |else_like| |define_like| & |lproc| &
207 \maltt {\#\&{include}} \#\&{else} \#\&{define} \cr
208 \+& |lproc| |rproc| & |insert| & \#\&{endif} \cr
209 \+& |lproc| \alt {|exp| [|exp|]} |function| |rproc| & |insert| \hfill
210 $I$\.\ \alt {$E{[\.{\ \\5}E]}$} {$F$} &
211 \malt{\#\&{define} $a$\enspace 1} {\#\&{define} $a$\enspace$\{\,b;\,\}$} \cr
212 \+& |section_scrap| |semi| & |stmt|\hfill $MS$ |force|
213 &$\langle\,$section name$\,\rangle$;\cr
214 \+& |section_scrap| & |exp| &$\langle\,$section name$\,\rangle$\cr
215 \+& |insert| |function| & |function| & \#\&{include} before \\{main}\cr
216 \+& |prelangle| & |binop| \hfill \.< & $<$ not in template\cr
217 \+& |prerangle| & |binop| \hfill \.> & $>$ not in template\cr
218 \+& |langle| |prerangle| & |cast| \hfill $L\.{\\,}P$ & $\langle\,\rangle$\cr
219 \+& |langle| \altt|decl_head| |int_like| |exp| |prerangle| & |cast| &
220 $\langle\&{class}\,\&C\rangle$\cr
221 \+& |langle| \altt|decl_head| |int_like| |exp| |comma| & |langle| \hfill
222 $L$\,\altt $D$ $I$ $E$ \unskip $C$\,|opt|9 & $\langle\&{class}\,\&C,$\cr
223 \+& |template_like| |exp| |prelangle| & |template_like| |exp| |langle| &
224 \&{template} $a\langle100\rangle$\cr
225 \+& |template_like| \alt|exp| |raw_int| & \alt|exp| |raw_int| \hfill
226 $T$\.\ \alt$E$ $R$ & \&C\DC\&{template} $a$(\,)\cr
227 \+& |template_like| & |raw_int| & \&{template}$\langle\&{class}\,\&T\rangle$\cr
228 \+& |new_like| |lpar| |exp| |rpar| & |new_like| & \&{new}(\\{nothrow})\cr
229 \+& |new_like| |cast| & |exp| \hfill $N\.\ C$ & |new(int*)|\cr
230 \+\dagit& |new_like| & |new_exp| & \&{new} \&C(\,)\cr
231 \+& |new_exp| \alt|int_like| |const_like| & |new_exp| \hfill
232 $N$\.\ \alt $I$ $C$ & |new const int|\cr
233 \+& |new_exp| |struct_like| \alt |exp| |int_like| & |new_exp| \hfill
234 $N\.\ S$\.\ \alt $E$ $I$ & \&{new} \&{struct} \&S\cr
235 \+& |new_exp| |raw_ubin| & |new_exp| \hfill $N\.\{R\.\}$ & |new int*[2]|\cr
236 \+& |new_exp| \alt |lpar| |exp| & |exp| \alt |lpar| |exp| \hfill
237 $E=N$\,\alt {} {\.\ } & \malt {|operator[](int)|} {|new int(2)|} \cr
238 \+\dagit& |new_exp| & |exp| & |new int;|\cr
239 \+& |ftemplate| |prelangle| & |ftemplate| |langle| & |make_pair<int,int>|\cr
240 \+& |ftemplate| & |exp| & |make_pair(1,2)|\cr
241 \+& |for_like| |exp| & |else_like| \hfill $F\.\ E$ & |while (1)|\cr
242 \+& |raw_ubin| |const_like| & |raw_ubin| \hfill $RC$\.{\\\ }
243 & $*$\&{const} $x$\cr
244 \+& |raw_ubin| & |ubinop| & $*$ $x$\cr
245 \+& |const_like| & |int_like| & \&{const} $x$\cr
246 \+& |raw_int| |prelangle| & |raw_int| |langle| & \&C$\langle$\cr
247 \+& |raw_int| |colcol| & |colcol| & \&C\DC\cr
248 \+& |raw_int| |cast| & |raw_int| & \&C$\langle\&{class}\ \&T\rangle$\cr
249 \+& |raw_int| |lpar| & |exp| |lpar| & \&{complex}$(x,y)$\cr
250 \+\dagit& |raw_int| & |int_like| & \&{complex} $z$\cr
251 \+\dagit& |operator_like| \altt|binop| |unop| |ubinop| & |exp|
252 \hfill $O$\.\{\altt $B$ $U$ $U$ \unskip \.\} & |operator+|\cr
253 \+& |operator_like| \alt|new_like| |delete_like| & |exp| \hfill
254 $O$\.\ \alt $N$ $S$ & |operator delete|\cr
255 \+& |operator_like| |comma| & |exp| & \&{operator},\cr
256 \+\dagit& |operator_like| & |new_exp| & |operator char*|\cr
257 \advance\midcol-8pt
258 \+& |typedef_like| \alt|int_like| |cast| \alt|comma| |semi| &
259 |typedef_like| |exp| \alt|comma| |semi| & \&{typedef} \&{int} \&I,\cr
260 \advance\midcol+8pt
261 \+& |typedef_like| |int_like| & |typedef_like| \hfill $T\.\ I$ &
262 \&{typedef} \&{char}\cr
263 \+\dagit& |typedef_like| |exp| & |typedef_like| \hfill $T\.\ E^{**}$ &
264 \&{typedef} \&I \.{@@[@@]} (|*|\&P)\cr
265 \+& |typedef_like| |comma| & |typedef_like| \hfill $TC$ &
266 \&{typedef} \&{int} \&x,\cr
267 \+& |typedef_like| |semi| & |decl| & \&{typedef} \&{int} $\&x,{}$ $\&y$;\cr
268 \+& |typedef_like| |ubinop| \alt |cast| |ubinop| &
269 |typedef_like| \alt |cast| |ubinop| \hfill
270 \alt $C=\.\{U\.\}C$ $U_2=\.\{U_1\.\}U_2$ \unskip &
271 \&{typedef} |*|{}|*|(\&{CPtr})\cr
272 \+& |delete_like| |lbrack| |rbrack| & |delete_like|\hfill $DL\.{\\,}R$
273 & \&{delete}[\,] \cr
274 \+& |delete_like| |exp| & |exp| \hfill $D\.\ E$ & \&{delete} $p$ \cr
275 \+\dagit& |question| |exp| \alt |colon| |base| & |binop|
276 & \malt {$\?x:$} {$\?f(\,):$} \cr
277 \+& |begin_arg| |end_arg| & |exp| & \.{@@[}\&{char}$*$\.{@@]}\cr
278 \+& \\{any\_other} |end_arg| & |end_arg| & \&{char}$*$\.{@@]}\cr
279 \+& |alignas_like| |decl_head| & |attr| & \&{alignas}(\&{struct} $s$ ${*})$ \cr
280 \+& |alignas_like| |exp| & |attr| & |alignas(8)| \cr
281 \+& |lbrack| |lbrack| & |attr_head| & attribute begins \cr
282 \+& |lbrack| & |lpar| & |[| elsewhere \cr
283 \+& |rbrack| & |rpar| & |]| elsewhere \cr
284 \+& |attr_head| |rbrack| |rbrack| & |attr| & |[[@t\dots@>]]| \cr
285 \+& |attr_head| |exp| & |attr_head| & |[[deprecated| \cr
286 \+& |attr_head| |using_like| |exp| |colon| & |attr_head|
287 & [[\&{using} \.{NS}: \cr
288 \+& |attr| \alt|lbrace| |stmt| & \alt|lbrace| |stmt| \hfill
289 $A$\.\ \alt $S$ $L$ & |[[likely]] {|\cr
290 \+& |attr| |tag| & |tag| \hfill $A\.\ T$ & |[[likely]] case 0:| \cr
291 \+& |attr| |semi| & |stmt| & |[[fallthrough]];| \cr
292 \+& |attr| |attr| & |attr| \hfill $A_1\.\ A_2$
293 & \&{alignas}($x$) [[\hbox{\dots}]] \cr
294 \+& |attr| |decl_head| & |decl_head| & [[\\{nodiscard}]] $f$(\,) \cr
295 \+& |decl_head| |attr| & |decl_head| & (\&{int} $x$ [[\\{deprecated}]])\cr
296 \+& |using_like| & |int_like| & \&{using} not in attributes \cr
297 \+& |struct_like| |attr| & |struct_like| \hfill $S\.\ A$
298 & \&{struct} [[\\{deprecated}]]\cr
299 \+& |exp| |attr| & |exp| \hfill $E\.\ A$ & \&{enum} $\{x\ [[\ldots]]\}$ \cr
300 \+& |attr| |typedef_like| & |typedef_like| \hfill $A\.\ T$
301 & |[[deprecated]] typedef| \cr
302 \+& |raw_int| |lbrack| & |exp| & |int[3]| \cr
303 \+& |attr_head| |comma| & |attr_head| & $[[x,y$ \cr
304 \+& |if_head| |attr| & |if_head| \hfill $I\.\ A$
305 & \&{if} ($x$) [[\\{unlikely}]] $\{$ \cr
306 \+& |lbrack| |lbrack| |rbrack| |rbrack| & |exp| & |[[]]| \cr
307 \+& |attr| |function| & |function| \hfill $A\.\ F$
308 & attribute and function \cr
309 \+& |default_like| |colon| & |case_like| |colon| & |default:| \cr
310 \+& |default_like| & |exp| & $f(\,)=\&{default};$ \cr
311 \+& |struct_like| |struct_like| & |struct_like| \hfill $S_1\.\ S_2$
312 & |enum class| \cr
313 \+& |exp| |colcol| |int_like| & |int_like| & $\\{std}\DC\&{atomic}$ \cr
314 \advance\midcol-30pt
315 \+\dagit& |langle| |struct_like| \alt |exp| |int_like| |comma| &
316 |langle| \hfill $LS$\.\ \alt $E^{**}$ $I^{**}$ \unskip $C$\,\\{opt}9
317 & $\langle$\&{typename} $t,$\cr
318 \+\dagit& |langle| |struct_like| \alt |exp| |int_like| |prerangle| &
319 |cast| \hfill $LS$\.\ \alt $E^{**}$ $I^{**}$ \unskip $P$
320 & $\langle$\&{typename} $t\rangle$ \cr
321 \advance\midcol30pt
322 \+& |template_like| |cast| |struct_like| & |struct_like| \hfill $T\.\ CS$ &
323 |template<@t\dots@>> class| \cr
324 \+& |tag| |rbrace| & |decl| |rbrace| & @q{@>|public: }| \cr
325 \+& |fn_decl| |attr| & |fn_decl| \hfill $F\.\ A$
326 & \&{void} $f$(\,) \&{noexcept} \cr
327 \+& |alignas_like| |cast| & |attr| & |alignas(int)| \cr
328 \vfill\break
329 \parindent=0pt
330 \dag{\bf Notes}
331 \yskip
332 Rules 35, 117: The |exp| must not be immediately followed by |lpar|, |lbrack|,
333 |exp|, or~|cast|.
334
335 Rule 48: The |exp| or |int_like| must not be immediately followed by |base|.
336
337 Rule 55: The second |force| becomes \\{bsp} if \.{CWEAVE} has been invoked
338 with the \.{-F} option.
339
340 Rule 69: The $|do|\ldots|while|$ loop is wrapped in |force| if \.{CWEAVE} is invoked with the \.{-f} option.
341
342 Rule 76: The |force| in the |stmt| line becomes \\{bsp} if \.{CWEAVE} has
343 been invoked with the \.{-f} option.
344
345 Rule 78: The |define_like| case calls |make_underlined| on the following scrap.
346
347 Rule 94: The |new_like| must not be immediately followed by |lpar|.
348
349 Rule 99: The |new_exp| must not be immediately followed by |raw_int|,
350 |struct_like|, or |colcol|.
351
352 Rule 110: The |raw_int| must not be immediately followed by |langle|.
353
354 Rule 111: The operator after |operator_like|
355 must not be immediately followed by a |binop|.
356
357 Rule 114: The |operator_like| must not be immediately followed by
358 |raw_ubin|.
359
360 Rule 123: The mathness of the |colon| or |base| changes to `yes'.
361
362 Rules 153, 154: |make_reserved| is called only if \.{CWEAVE} has been invoked
363 with the \.{+t} option.
364
365 \endgroup