Skip to content

Commit

Permalink
Merge 2024-11 CWG Motion 2
Browse files Browse the repository at this point in the history
P3340R0 A Consistent Grammar For Sequences
  • Loading branch information
tkoeppe authored Dec 16, 2024
2 parents 9e41261 + 79f0f59 commit 36271ad
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 39 deletions.
3 changes: 1 addition & 2 deletions source/classes.tex
Original file line number Diff line number Diff line change
Expand Up @@ -492,8 +492,7 @@

\begin{bnf}
\nontermdef{virt-specifier-seq}\br
virt-specifier\br
virt-specifier-seq virt-specifier
virt-specifier \opt{virt-specifier-seq}
\end{bnf}

\begin{bnf}
Expand Down
8 changes: 3 additions & 5 deletions source/declarations.tex
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
the form
\begin{bnf}
\nontermdef{declaration-seq}\br
declaration\br
declaration-seq declaration
declaration \opt{declaration-seq}
\end{bnf}

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

\begin{bnf}
\nontermdef{attribute-specifier-seq}\br
\opt{attribute-specifier-seq} attribute-specifier
attribute-specifier \opt{attribute-specifier-seq}
\end{bnf}

\begin{bnf}
Expand Down Expand Up @@ -8780,8 +8779,7 @@

\begin{bnf}
\nontermdef{balanced-token-seq}\br
balanced-token\br
balanced-token-seq balanced-token
balanced-token \opt{balanced-token-seq}
\end{bnf}

\begin{bnf}
Expand Down
6 changes: 2 additions & 4 deletions source/expressions.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1846,8 +1846,7 @@

\begin{bnf}
\nontermdef{lambda-specifier-seq}\br
lambda-specifier\br
lambda-specifier lambda-specifier-seq
lambda-specifier \opt{lambda-specifier-seq}
\end{bnf}

\pnum
Expand Down Expand Up @@ -2896,8 +2895,7 @@

\begin{bnf}
\nontermdef{requirement-seq}\br
requirement\br
requirement requirement-seq
requirement \opt{requirement-seq}
\end{bnf}

\begin{bnf}
Expand Down
27 changes: 9 additions & 18 deletions source/lex.tex
Original file line number Diff line number Diff line change
Expand Up @@ -398,8 +398,7 @@

\begin{bnf}
\nontermdef{n-char-sequence}\br
n-char\br
n-char-sequence n-char
n-char \opt{n-char-sequence}
\end{bnf}

\begin{bnf}
Expand All @@ -414,8 +413,7 @@

\begin{bnf}
\nontermdef{simple-hexadecimal-digit-sequence}\br
hexadecimal-digit\br
simple-hexadecimal-digit-sequence hexadecimal-digit
hexadecimal-digit \opt{simple-hexadecimal-digit-sequence}
\end{bnf}

\begin{bnf}
Expand Down Expand Up @@ -642,8 +640,7 @@

\begin{bnf}
\nontermdef{h-char-sequence}\br
h-char\br
h-char-sequence h-char
h-char \opt{h-char-sequence}
\end{bnf}

\begin{bnf}
Expand All @@ -653,8 +650,7 @@

\begin{bnf}
\nontermdef{q-char-sequence}\br
q-char\br
q-char-sequence q-char
q-char \opt{q-char-sequence}
\end{bnf}

\begin{bnf}
Expand Down Expand Up @@ -1377,8 +1373,7 @@

\begin{bnf}
\nontermdef{c-char-sequence}\br
c-char\br
c-char-sequence c-char
c-char \opt{c-char-sequence}
\end{bnf}

\begin{bnf}
Expand Down Expand Up @@ -1419,8 +1414,7 @@

\begin{bnf}
\nontermdef{simple-octal-digit-sequence}\br
octal-digit\br
simple-octal-digit-sequence octal-digit
octal-digit \opt{simple-octal-digit-sequence}
\end{bnf}

\begin{bnf}
Expand Down Expand Up @@ -1748,8 +1742,7 @@

\begin{bnf}
\nontermdef{s-char-sequence}\br
s-char\br
s-char-sequence s-char
s-char \opt{s-char-sequence}
\end{bnf}

\begin{bnf}
Expand All @@ -1772,8 +1765,7 @@

\begin{bnf}
\nontermdef{r-char-sequence}\br
r-char\br
r-char-sequence r-char
r-char \opt{r-char-sequence}
\end{bnf}

\begin{bnf}
Expand All @@ -1784,8 +1776,7 @@

\begin{bnf}
\nontermdef{d-char-sequence}\br
d-char\br
d-char-sequence d-char
d-char\opt{d-char-sequence}
\end{bnf}

\begin{bnf}
Expand Down
9 changes: 3 additions & 6 deletions source/preprocessor.tex
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@

\begin{bnf}
\nontermdef{elif-groups}\br
elif-group\br
elif-groups elif-group
elif-group \opt{elif-groups}
\end{bnf}

\begin{bnf}\obeyspaces
Expand Down Expand Up @@ -124,8 +123,7 @@

\begin{bnf}
\nontermdef{pp-tokens}\br
preprocessing-token\br
pp-tokens preprocessing-token
preprocessing-token \opt{pp-tokens}
\end{bnf}

\begin{bnf}
Expand Down Expand Up @@ -300,8 +298,7 @@

\begin{bnf}
\nontermdef{h-pp-tokens}\br
h-preprocessing-token\br
h-pp-tokens h-preprocessing-token
h-preprocessing-token \opt{h-pp-tokens}
\end{bnf}

\begin{bnf}
Expand Down
6 changes: 2 additions & 4 deletions source/statements.tex
Original file line number Diff line number Diff line change
Expand Up @@ -226,14 +226,12 @@

\begin{bnf}
\nontermdef{statement-seq}\br
statement\br
statement-seq statement
statement \opt{statement-seq}
\end{bnf}

\begin{bnf}
\nontermdef{label-seq}\br
label\br
label-seq label
label \opt{label-seq}
\end{bnf}

A label at the end of a \grammarterm{compound-statement}
Expand Down

0 comments on commit 36271ad

Please sign in to comment.