Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6a15c5d

Browse files
committed
[Bug #1193001] Make the notation section use the same productionlist env. as other grammar rules
1 parent 3554cad commit 6a15c5d

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Doc/ref/ref1.tex

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ \section{Notation\label{notation}}
4343
\index{syntax}
4444
\index{notation}
4545

46-
\begin{verbatim}
47-
name: lc_letter (lc_letter | "_")*
48-
lc_letter: "a"..."z"
49-
\end{verbatim}
46+
\begin{productionlist}
47+
\production{name}{\token{lc_letter} (\token{lc_letter} | "_")*}
48+
\production{lc_letter}{"a"..."z"}
49+
\end{productionlist}
5050

5151
The first line says that a \code{name} is an \code{lc_letter} followed by
5252
a sequence of zero or more \code{lc_letter}s and underscores. An
@@ -55,7 +55,7 @@ \section{Notation\label{notation}}
5555
names defined in lexical and grammar rules in this document.)
5656

5757
Each rule begins with a name (which is the name defined by the rule)
58-
and a colon. A vertical bar (\code{|}) is used to separate
58+
and \code{::=}. A vertical bar (\code{|}) is used to separate
5959
alternatives; it is the least binding operator in this notation. A
6060
star (\code{*}) means zero or more repetitions of the preceding item;
6161
likewise, a plus (\code{+}) means one or more repetitions, and a

0 commit comments

Comments
 (0)