summaryrefslogtreecommitdiffstats
path: root/Doc/ref
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2005-06-02 13:50:19 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2005-06-02 13:50:19 (GMT)
commit6a15c5d038704eac43e9bdde10be26ee97a43a76 (patch)
tree93e473817499617bacbe757e1932baca7c6fdac1 /Doc/ref
parent3554cad009c84889ee0397a77a69ab30307b57ae (diff)
downloadcpython-6a15c5d038704eac43e9bdde10be26ee97a43a76.zip
cpython-6a15c5d038704eac43e9bdde10be26ee97a43a76.tar.gz
cpython-6a15c5d038704eac43e9bdde10be26ee97a43a76.tar.bz2
[Bug #1193001] Make the notation section use the same productionlist env. as other grammar rules
Diffstat (limited to 'Doc/ref')
-rw-r--r--Doc/ref/ref1.tex10
1 files changed, 5 insertions, 5 deletions
diff --git a/Doc/ref/ref1.tex b/Doc/ref/ref1.tex
index 4aae253..6634895 100644
--- a/Doc/ref/ref1.tex
+++ b/Doc/ref/ref1.tex
@@ -43,10 +43,10 @@ grammar notation. This uses the following style of definition:
\index{syntax}
\index{notation}
-\begin{verbatim}
-name: lc_letter (lc_letter | "_")*
-lc_letter: "a"..."z"
-\end{verbatim}
+\begin{productionlist}
+ \production{name}{\token{lc_letter} (\token{lc_letter} | "_")*}
+ \production{lc_letter}{"a"..."z"}
+\end{productionlist}
The first line says that a \code{name} is an \code{lc_letter} followed by
a sequence of zero or more \code{lc_letter}s and underscores. An
@@ -55,7 +55,7 @@ through \character{z}. (This rule is actually adhered to for the
names defined in lexical and grammar rules in this document.)
Each rule begins with a name (which is the name defined by the rule)
-and a colon. A vertical bar (\code{|}) is used to separate
+and \code{::=}. A vertical bar (\code{|}) is used to separate
alternatives; it is the least binding operator in this notation. A
star (\code{*}) means zero or more repetitions of the preceding item;
likewise, a plus (\code{+}) means one or more repetitions, and a