summaryrefslogtreecommitdiffstats
path: root/Doc/ref/refa1.tex
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2002-03-15 23:18:05 (GMT)
committerFred Drake <fdrake@acm.org>2002-03-15 23:18:05 (GMT)
commit487b17d2c1f3c3b88800815f1e70d1027a19e4b5 (patch)
tree47e1e3c364298d859aa1183c8d35aedf3a04d489 /Doc/ref/refa1.tex
parent03efe0399ca57f28eb55d76003a1f2627f66ccea (diff)
downloadcpython-487b17d2c1f3c3b88800815f1e70d1027a19e4b5.zip
cpython-487b17d2c1f3c3b88800815f1e70d1027a19e4b5.tar.gz
cpython-487b17d2c1f3c3b88800815f1e70d1027a19e4b5.tar.bz2
Revise the markup related to the grammar productions to increase the
level of predictability. This is not really "good" markup, but is arguably better than we had before. This closes SF bug #523117.
Diffstat (limited to 'Doc/ref/refa1.tex')
-rw-r--r--Doc/ref/refa1.tex14
1 files changed, 7 insertions, 7 deletions
diff --git a/Doc/ref/refa1.tex b/Doc/ref/refa1.tex
index 4cd10d5..bf40c2d 100644
--- a/Doc/ref/refa1.tex
+++ b/Doc/ref/refa1.tex
@@ -20,13 +20,13 @@ versions of Python that introduce incompatible changes to the
language. It allows use of the new features on a per-module basis
before the release in which the feature becomes standard.
-\begin{verbatim}
-future_statement: "from" "__future__" "import" feature ["as" name]
- ("," feature ["as" name])*
-
-feature: identifier
-name: identifier
-\end{verbatim}
+\begin{productionlist}[*]
+ \production{future_statement}
+ {"from" "__future__" "import" feature ["as" name]}
+ \productioncont{("," feature ["as" name])*}
+ \production{feature}{identifier}
+ \production{name}{identifier}
+\end{productionlist}
A future statement must appear near the top of the module. The only
lines that can appear before a future statement are: