Skip to content

Commit 70bd5d8

Browse files
AlisdairMzygoloid
authored andcommitted
Use 'one of' formulation for binary-digit
The grammar for literals consistently prefers using the 'one of' a set formulation for character sets, rather than listing each character as an option. This holds for other parts of this grammar, even when the set of options is just two items, such as hexadecimal-prefix, unsigned-suffix, or long-suffix. As binary-digit is the odd one out, this simple update makes it consistent with the rest of the grammar specifications in this clause.
1 parent 9c4f682 commit 70bd5d8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

source/lex.tex

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -869,9 +869,8 @@
869869
\end{bnf}
870870

871871
\begin{bnf}
872-
\nontermdef{binary-digit}\br
873-
\terminal{0}\br
874-
\terminal{1}
872+
\nontermdef{binary-digit} \textnormal{one of}\br
873+
\terminal{0 1}
875874
\end{bnf}
876875

877876
\begin{bnf}

0 commit comments

Comments
 (0)