Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bbe6068

Browse files
committed
Added \label{} to allow module references.
Added some seealso sections.
1 parent aa5dba0 commit bbe6068

2 files changed

Lines changed: 46 additions & 8 deletions

File tree

Doc/lib/libparser.tex

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
%
1111

1212
\section{Built-in Module \sectcode{parser}}
13+
\label{module-parser}
1314
\bimodindex{parser}
1415

1516
The \code{parser} module provides an interface to Python's internal
@@ -609,9 +610,9 @@ \subsubsection{Information Discovery}
609610
the code block is on the same line as the definition of the code
610611
block, as in
611612

612-
\bcode\begin{verbatim}
613+
\begin{verbatim}
613614
def square(x): "Square an argument."; return x ** 2
614-
\end{verbatim}\ecode
615+
\end{verbatim}
615616
%
616617
while the long form uses an indented block and allows nested
617618
definitions:
@@ -674,8 +675,20 @@ \subsubsection{Information Discovery}
674675
of this example, the code may be extended at clearly defined points to
675676
provide additional capabilities.
676677

678+
\begin{seealso}
679+
680+
\seemodule{symbol}%
681+
{useful constants representing internal nodes of the parse tree}
682+
683+
\seemodule{token}%
684+
{useful constants representing leaf nodes of the parse tree and
685+
functions for testing node values}
686+
687+
\end{seealso}
688+
677689

678690
\section{Standard Module \sectcode{symbol}}
691+
\label{module-symbol}
679692
\stmodindex{symbol}
680693

681694
This module provides constants which represent the numeric values of
@@ -696,8 +709,13 @@ \section{Standard Module \sectcode{symbol}}
696709
representation of parse trees to be generated.
697710
\end{datadesc}
698711

712+
\begin{seealso}
713+
\seemodule{parser}{second example uses this module}
714+
\end{seealso}
715+
699716

700717
\section{Standard Module \sectcode{token}}
718+
\label{module-token}
701719
\stmodindex{token}
702720

703721
This module provides constants which represent the numeric values of
@@ -731,5 +749,6 @@ \section{Standard Module \sectcode{token}}
731749
Return true if \var{x} is the marker indicating the end of input.
732750
\end{funcdesc}
733751

734-
%%
735-
%% end of file
752+
\begin{seealso}
753+
\seemodule{parser}{second example uses this module}
754+
\end{seealso}

Doc/libparser.tex

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
%
1111

1212
\section{Built-in Module \sectcode{parser}}
13+
\label{module-parser}
1314
\bimodindex{parser}
1415

1516
The \code{parser} module provides an interface to Python's internal
@@ -609,9 +610,9 @@ \subsubsection{Information Discovery}
609610
the code block is on the same line as the definition of the code
610611
block, as in
611612

612-
\bcode\begin{verbatim}
613+
\begin{verbatim}
613614
def square(x): "Square an argument."; return x ** 2
614-
\end{verbatim}\ecode
615+
\end{verbatim}
615616
%
616617
while the long form uses an indented block and allows nested
617618
definitions:
@@ -674,8 +675,20 @@ \subsubsection{Information Discovery}
674675
of this example, the code may be extended at clearly defined points to
675676
provide additional capabilities.
676677

678+
\begin{seealso}
679+
680+
\seemodule{symbol}%
681+
{useful constants representing internal nodes of the parse tree}
682+
683+
\seemodule{token}%
684+
{useful constants representing leaf nodes of the parse tree and
685+
functions for testing node values}
686+
687+
\end{seealso}
688+
677689

678690
\section{Standard Module \sectcode{symbol}}
691+
\label{module-symbol}
679692
\stmodindex{symbol}
680693

681694
This module provides constants which represent the numeric values of
@@ -696,8 +709,13 @@ \section{Standard Module \sectcode{symbol}}
696709
representation of parse trees to be generated.
697710
\end{datadesc}
698711

712+
\begin{seealso}
713+
\seemodule{parser}{second example uses this module}
714+
\end{seealso}
715+
699716

700717
\section{Standard Module \sectcode{token}}
718+
\label{module-token}
701719
\stmodindex{token}
702720

703721
This module provides constants which represent the numeric values of
@@ -731,5 +749,6 @@ \section{Standard Module \sectcode{token}}
731749
Return true if \var{x} is the marker indicating the end of input.
732750
\end{funcdesc}
733751

734-
%%
735-
%% end of file
752+
\begin{seealso}
753+
\seemodule{parser}{second example uses this module}
754+
\end{seealso}

0 commit comments

Comments
 (0)