Kaydet (Commit) d67e12e6 authored tarafından Fred Drake's avatar Fred Drake

Added \label{}s for logical addressing.

üst 7baf3d4e
...@@ -93,6 +93,7 @@ query the type of parse tree represented by an AST object. ...@@ -93,6 +93,7 @@ query the type of parse tree represented by an AST object.
\subsection{Creating AST Objects} \subsection{Creating AST Objects}
\label{Creating ASTs}
AST objects may be created from source code or from a parse tree. AST objects may be created from source code or from a parse tree.
When creating an AST object from source, different functions are used When creating an AST object from source, different functions are used
...@@ -145,6 +146,7 @@ is maintained for backward compatibility. ...@@ -145,6 +146,7 @@ is maintained for backward compatibility.
\subsection{Converting AST Objects} \subsection{Converting AST Objects}
\label{Converting ASTs}
AST objects, regardless of the input used to create them, may be AST objects, regardless of the input used to create them, may be
converted to parse trees represented as list- or tuple- trees, or may converted to parse trees represented as list- or tuple- trees, or may
...@@ -205,6 +207,7 @@ inspection of the parse tree. ...@@ -205,6 +207,7 @@ inspection of the parse tree.
\subsection{Queries on AST Objects} \subsection{Queries on AST Objects}
\label{Querying ASTs}
Two functions are provided which allow an application to determine if Two functions are provided which allow an application to determine if
an AST was create as an expression or a suite. Neither of these an AST was create as an expression or a suite. Neither of these
...@@ -233,6 +236,7 @@ be supported in the future. ...@@ -233,6 +236,7 @@ be supported in the future.
\subsection{Exceptions and Error Handling} \subsection{Exceptions and Error Handling}
\label{AST Errors}
The parser module defines a single exception, but may also pass other The parser module defines a single exception, but may also pass other
built-in exceptions from other portions of the Python runtime built-in exceptions from other portions of the Python runtime
...@@ -261,6 +265,7 @@ to the descriptions of each function for detailed information. ...@@ -261,6 +265,7 @@ to the descriptions of each function for detailed information.
\subsection{AST Objects} \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. \function{sequence2ast()} have no methods of their own.
......
...@@ -93,6 +93,7 @@ query the type of parse tree represented by an AST object. ...@@ -93,6 +93,7 @@ query the type of parse tree represented by an AST object.
\subsection{Creating AST Objects} \subsection{Creating AST Objects}
\label{Creating ASTs}
AST objects may be created from source code or from a parse tree. AST objects may be created from source code or from a parse tree.
When creating an AST object from source, different functions are used When creating an AST object from source, different functions are used
...@@ -145,6 +146,7 @@ is maintained for backward compatibility. ...@@ -145,6 +146,7 @@ is maintained for backward compatibility.
\subsection{Converting AST Objects} \subsection{Converting AST Objects}
\label{Converting ASTs}
AST objects, regardless of the input used to create them, may be AST objects, regardless of the input used to create them, may be
converted to parse trees represented as list- or tuple- trees, or may converted to parse trees represented as list- or tuple- trees, or may
...@@ -205,6 +207,7 @@ inspection of the parse tree. ...@@ -205,6 +207,7 @@ inspection of the parse tree.
\subsection{Queries on AST Objects} \subsection{Queries on AST Objects}
\label{Querying ASTs}
Two functions are provided which allow an application to determine if Two functions are provided which allow an application to determine if
an AST was create as an expression or a suite. Neither of these an AST was create as an expression or a suite. Neither of these
...@@ -233,6 +236,7 @@ be supported in the future. ...@@ -233,6 +236,7 @@ be supported in the future.
\subsection{Exceptions and Error Handling} \subsection{Exceptions and Error Handling}
\label{AST Errors}
The parser module defines a single exception, but may also pass other The parser module defines a single exception, but may also pass other
built-in exceptions from other portions of the Python runtime built-in exceptions from other portions of the Python runtime
...@@ -261,6 +265,7 @@ to the descriptions of each function for detailed information. ...@@ -261,6 +265,7 @@ to the descriptions of each function for detailed information.
\subsection{AST Objects} \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. \function{sequence2ast()} have no methods of their own.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment