[Python-checkins] python/dist/src/Doc/ref ref1.tex,1.14,1.14.28.1

akuchling@users.sourceforge.net akuchling at users.sourceforge.net
Thu Jun 2 15:52:10 CEST 2005


Update of /cvsroot/python/python/dist/src/Doc/ref
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11495

Modified Files:
      Tag: release24-maint
	ref1.tex 
Log Message:
[Bug #1193001] Make the notation section use the same productionlist env. as other grammar rules

Index: ref1.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/ref/ref1.tex,v
retrieving revision 1.14
retrieving revision 1.14.28.1
diff -u -d -r1.14 -r1.14.28.1
--- ref1.tex	28 Nov 2001 07:26:15 -0000	1.14
+++ ref1.tex	2 Jun 2005 13:52:07 -0000	1.14.28.1
@@ -43,10 +43,10 @@
 \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 @@
 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



More information about the Python-checkins mailing list