summaryrefslogtreecommitdiffstats
path: root/Doc/libparser.tex
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1998-03-08 06:47:24 (GMT)
committerFred Drake <fdrake@acm.org>1998-03-08 06:47:24 (GMT)
commitcc444e39e5f50c9cc197cee4892ef197d51886b7 (patch)
treee2f8dbb32cb93fcd408ab13aef89db9eddea0e46 /Doc/libparser.tex
parentbccc64020e111baf0e251baecd075800ad1a23fa (diff)
downloadcpython-cc444e39e5f50c9cc197cee4892ef197d51886b7.zip
cpython-cc444e39e5f50c9cc197cee4892ef197d51886b7.tar.gz
cpython-cc444e39e5f50c9cc197cee4892ef197d51886b7.tar.bz2
Nits.
Diffstat (limited to 'Doc/libparser.tex')
-rw-r--r--Doc/libparser.tex12
1 files changed, 8 insertions, 4 deletions
diff --git a/Doc/libparser.tex b/Doc/libparser.tex
index 1841eee..cf45b45 100644
--- a/Doc/libparser.tex
+++ b/Doc/libparser.tex
@@ -32,7 +32,7 @@ by the internal parser is required. For full information on the
language syntax, refer to the \emph{Python Language Reference}. The
parser itself is created from a grammar specification defined in the file
\file{Grammar/Grammar} in the standard Python distribution. The parse
-trees stored in the ``AST objects'' created by this module are the
+trees stored in the AST objects created by this module are the
actual output from the internal parser when created by the
\function{expr()} or \function{suite()} functions, described below. The AST
objects created by \function{sequence2ast()} faithfully simulate those
@@ -267,13 +267,17 @@ to the descriptions of each function for detailed information.
\subsection{AST Objects}
\label{AST Objects}
-AST objects returned by \function{expr()}, \function{suite()}, and
+AST objects returned by \function{expr()}, \function{suite()} and
\function{sequence2ast()} have no methods of their own.
Some of the functions defined which accept an AST object as their
-first argument may change to object methods in the future. The type
-of these objects is available as \code{ASTType} in the module.
+first argument may change to object methods in the future.
+
+\begin{datadesc}{ASTType}
+The type of the objects returned by \function{expr()},
+\function{suite()} and \function{sequence2ast()}.
Ordered and equality comparisons are supported between AST objects.
+\end{datadesc}
\subsection{Examples}