[Python-checkins] CVS: python/dist/src/Tools/compiler/doc compiler.tex,1.2,1.3

Fred L. Drake fdrake@users.sourceforge.net
2001年8月15日 07:35:15 -0700


Update of /cvsroot/python/python/dist/src/Tools/compiler/doc
In directory usw-pr-cvs1:/tmp/cvs-serv21237
Modified Files:
	compiler.tex 
Log Message:
Fix small markup consistency nits.
Index: compiler.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Tools/compiler/doc/compiler.tex,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** compiler.tex	2001年08月14日 22:38:03	1.2
--- compiler.tex	2001年08月15日 14:35:13	1.3
***************
*** 76,80 ****
 \begin{funcdesc}{parseFile}{path}
 Return an abstract syntax tree for the Python source code in the file
! specified by \var{path}. It is equivalent to \code{parse(open(path).read())}.
 \end{funcdesc}
 
--- 76,81 ----
 \begin{funcdesc}{parseFile}{path}
 Return an abstract syntax tree for the Python source code in the file
! specified by \var{path}. It is equivalent to
! \code{parse(open(\var{path}).read())}.
 \end{funcdesc}
 
***************
*** 164,168 ****
 \begin{methoddesc}{getChildNodes}{}
 Returns a flattened list of the child nodes in the order they
! occur. This method is like \method{getChildNodes}, except that it
 only returns those children that are \class{Node} instances.
 \end{methoddesc}
--- 165,169 ----
 \begin{methoddesc}{getChildNodes}{}
 Returns a flattened list of the child nodes in the order they
! occur. This method is like \method{getChildNodes()}, except that it
 only returns those children that are \class{Node} instances.
 \end{methoddesc}
***************
*** 211,215 ****
 value is something other than an instance, the type is noted in the
 comment. The attributes are listed in the order in which they are
! returned by \method{getChildren} and \method{getChildNodes}.
 
 \input{asttable}
--- 212,216 ----
 value is something other than an instance, the type is noted in the
 comment. The attributes are listed in the order in which they are
! returned by \method{getChildren()} and \method{getChildNodes()}.
 
 \input{asttable}
***************
*** 247,253 ****
 The \class{ASTVisitor} is responsible for walking over the tree in the
 correct order. A walk begins with a call to \method{preorder()}. For
! each node, it checks the \var{visitor} argument to \method{preorder{}}
 for a method named `visitNodeType,' where NodeType is the name of the
! node's class, e.g. for a \class{While} node a \method{visitWhile}
 would be called . If the method exists, it is called with the node as
 its first argument.
--- 248,254 ----
 The \class{ASTVisitor} is responsible for walking over the tree in the
 correct order. A walk begins with a call to \method{preorder()}. For
! each node, it checks the \var{visitor} argument to \method{preorder()}
 for a method named `visitNodeType,' where NodeType is the name of the
! node's class, e.g. for a \class{While} node a \method{visitWhile()}
 would be called . If the method exists, it is called with the node as
 its first argument.
***************
*** 257,261 ****
 the visitor argument by adding a visit method to the visitor; this
 method can be used to visit a particular child node. If no visitor is
! found for a particular node type, the \method{default} method is
 called. 
 
--- 258,262 ----
 the visitor argument by adding a visit method to the visitor; this
 method can be used to visit a particular child node. If no visitor is
! found for a particular node type, the \method{default()} method is
 called. 
 
***************
*** 279,283 ****
 
 The code generator is a visit that emits bytecodes. Each visit method
! can call the \method{emit} method to emit a new bytecode. The basic
 code generator is specialized for modules, classes, and functions. An
 assembler converts that emitted instructions to the low-level bytecode
--- 280,284 ----
 
 The code generator is a visit that emits bytecodes. Each visit method
! can call the \method{emit()} method to emit a new bytecode. The basic
 code generator is specialized for modules, classes, and functions. An
 assembler converts that emitted instructions to the low-level bytecode

AltStyle によって変換されたページ (->オリジナル) /