Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
19405a4a
Commit
19405a4a
authored
Sep 28, 2001
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed files no longer needed.
parent
3c1b4a40
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
663 deletions
+0
-663
Tools/compiler/doc/astdocgen.py
Tools/compiler/doc/astdocgen.py
+0
-30
Tools/compiler/doc/asttable.tex
Tools/compiler/doc/asttable.tex
+0
-253
Tools/compiler/doc/compiler.tex
Tools/compiler/doc/compiler.tex
+0
-380
No files found.
Tools/compiler/doc/astdocgen.py
deleted
100644 → 0
View file @
3c1b4a40
# Lame substitute for a fine script to generate the table from ast.txt
from
compiler
import
astgen
AST_DEF
=
'../compiler/ast.txt'
def
sort
(
l
):
l
=
l
[:]
l
.
sort
(
lambda
a
,
b
:
cmp
(
a
.
name
,
b
.
name
))
return
l
def
main
():
nodes
=
astgen
.
parse_spec
(
AST_DEF
)
print
"
\
\
begin{longtableiii}{lll}{class}{Node type}{Attribute}{Value}"
print
for
node
in
sort
(
nodes
):
if
node
.
argnames
:
print
"
\
\
lineiii{%s}{%s}{}"
%
(
node
.
name
,
node
.
argnames
[
0
])
else
:
print
"
\
\
lineiii{%s}{}{}"
%
node
.
name
for
arg
in
node
.
argnames
[
1
:]:
print
"
\
\
lineiii{}{
\
\
member{%s}}{}"
%
arg
print
"
\
\
hline"
,
"
\
n
"
print
"
\
\
end{longtableiii}"
if
__name__
==
"__main__"
:
main
()
Tools/compiler/doc/asttable.tex
deleted
100644 → 0
View file @
3c1b4a40
\begin{longtableiii}
{
lll
}{
class
}{
Node type
}{
Attribute
}{
Value
}
\lineiii
{
Add
}{
\member
{
left
}}{
left operand
}
\lineiii
{}{
\member
{
right
}}{
right operand
}
\hline
\lineiii
{
And
}{
\member
{
nodes
}}{
list of operands
}
\hline
\lineiii
{
AssAttr
}{}{
\emph
{
attribute as target of assignment
}}
\lineiii
{}{
\member
{
expr
}}{
expression on the left-hand side of the dot
}
\lineiii
{}{
\member
{
attrname
}}{
the attribute name, a string
}
\lineiii
{}{
\member
{
flags
}}{
XXX
}
\hline
\lineiii
{
AssList
}{
\member
{
nodes
}}{
list of list elements being assigned to
}
\hline
\lineiii
{
AssName
}{
\member
{
name
}}{
name being assigned to
}
\lineiii
{}{
\member
{
flags
}}{
XXX
}
\hline
\lineiii
{
AssTuple
}{
\member
{
nodes
}}{
list of tuple elements being assigned to
}
\hline
\lineiii
{
Assert
}{
\member
{
test
}}{
the expression to be tested
}
\lineiii
{}{
\member
{
fail
}}{
the value of the
\exception
{
AssertionError
}}
\hline
\lineiii
{
Assign
}{
\member
{
nodes
}}{
a list of assignment targets, one per equal sign
}
\lineiii
{}{
\member
{
expr
}}{
the value being assigned
}
\hline
\lineiii
{
AugAssign
}{
\member
{
node
}}{}
\lineiii
{}{
\member
{
op
}}{}
\lineiii
{}{
\member
{
expr
}}{}
\hline
\lineiii
{
Backquote
}{
\member
{
expr
}}{}
\hline
\lineiii
{
Bitand
}{
\member
{
nodes
}}{}
\hline
\lineiii
{
Bitor
}{
\member
{
nodes
}}{}
\hline
\lineiii
{
Bitxor
}{
\member
{
nodes
}}{}
\hline
\lineiii
{
Break
}{}{}
\hline
\lineiii
{
CallFunc
}{
\member
{
node
}}{
expression for the callee
}
\lineiii
{}{
\member
{
args
}}{
a list of arguments
}
\lineiii
{}{
\member
{
star
_
args
}}{
the extended *-arg value
}
\lineiii
{}{
\member
{
dstar
_
args
}}{
the extended **-arg value
}
\hline
\lineiii
{
Class
}{
\member
{
name
}}{
the name of the class, a string
}
\lineiii
{}{
\member
{
bases
}}{
a list of base classes
}
\lineiii
{}{
\member
{
doc
}}{
doc string, a string or
\code
{
None
}}
\lineiii
{}{
\member
{
code
}}{
the body of the class statement
}
\hline
\lineiii
{
Compare
}{
\member
{
expr
}}{}
\lineiii
{}{
\member
{
ops
}}{}
\hline
\lineiii
{
Const
}{
\member
{
value
}}{}
\hline
\lineiii
{
Continue
}{}{}
\hline
\lineiii
{
Dict
}{
\member
{
items
}}{}
\hline
\lineiii
{
Discard
}{
\member
{
expr
}}{}
\hline
\lineiii
{
Div
}{
\member
{
left
}}{}
\lineiii
{}{
\member
{
right
}}{}
\hline
\lineiii
{
Ellipsis
}{}{}
\hline
\lineiii
{
Exec
}{
\member
{
expr
}}{}
\lineiii
{}{
\member
{
locals
}}{}
\lineiii
{}{
\member
{
globals
}}{}
\hline
\lineiii
{
For
}{
\member
{
assign
}}{}
\lineiii
{}{
\member
{
list
}}{}
\lineiii
{}{
\member
{
body
}}{}
\lineiii
{}{
\member
{
else
_}}{}
\hline
\lineiii
{
From
}{
\member
{
modname
}}{}
\lineiii
{}{
\member
{
names
}}{}
\hline
\lineiii
{
Function
}{
\member
{
name
}}{
name used in def, a string
}
\lineiii
{}{
\member
{
argnames
}}{
list of argument names, as strings
}
\lineiii
{}{
\member
{
defaults
}}{
list of default values
}
\lineiii
{}{
\member
{
flags
}}{
xxx
}
\lineiii
{}{
\member
{
doc
}}{
doc string, a string or
\code
{
None
}}
\lineiii
{}{
\member
{
code
}}{
the body of the function
}
\hline
\lineiii
{
Getattr
}{
\member
{
expr
}}{}
\lineiii
{}{
\member
{
attrname
}}{}
\hline
\lineiii
{
Global
}{
\member
{
names
}}{}
\hline
\lineiii
{
If
}{
\member
{
tests
}}{}
\lineiii
{}{
\member
{
else
_}}{}
\hline
\lineiii
{
Import
}{
\member
{
names
}}{}
\hline
\lineiii
{
Invert
}{
\member
{
expr
}}{}
\hline
\lineiii
{
Keyword
}{
\member
{
name
}}{}
\lineiii
{}{
\member
{
expr
}}{}
\hline
\lineiii
{
Lambda
}{
\member
{
argnames
}}{}
\lineiii
{}{
\member
{
defaults
}}{}
\lineiii
{}{
\member
{
flags
}}{}
\lineiii
{}{
\member
{
code
}}{}
\hline
\lineiii
{
LeftShift
}{
\member
{
left
}}{}
\lineiii
{}{
\member
{
right
}}{}
\hline
\lineiii
{
List
}{
\member
{
nodes
}}{}
\hline
\lineiii
{
ListComp
}{
\member
{
expr
}}{}
\lineiii
{}{
\member
{
quals
}}{}
\hline
\lineiii
{
ListCompFor
}{
\member
{
assign
}}{}
\lineiii
{}{
\member
{
list
}}{}
\lineiii
{}{
\member
{
ifs
}}{}
\hline
\lineiii
{
ListCompIf
}{
\member
{
test
}}{}
\hline
\lineiii
{
Mod
}{
\member
{
left
}}{}
\lineiii
{}{
\member
{
right
}}{}
\hline
\lineiii
{
Module
}{
\member
{
doc
}}{
doc string, a string or
\code
{
None
}}
\lineiii
{}{
\member
{
node
}}{
body of the module, a
\class
{
Stmt
}}
\hline
\lineiii
{
Mul
}{
\member
{
left
}}{}
\lineiii
{}{
\member
{
right
}}{}
\hline
\lineiii
{
Name
}{
\member
{
name
}}{}
\hline
\lineiii
{
Not
}{
\member
{
expr
}}{}
\hline
\lineiii
{
Or
}{
\member
{
nodes
}}{}
\hline
\lineiii
{
Pass
}{}{}
\hline
\lineiii
{
Power
}{
\member
{
left
}}{}
\lineiii
{}{
\member
{
right
}}{}
\hline
\lineiii
{
Print
}{
\member
{
nodes
}}{}
\lineiii
{}{
\member
{
dest
}}{}
\hline
\lineiii
{
Printnl
}{
\member
{
nodes
}}{}
\lineiii
{}{
\member
{
dest
}}{}
\hline
\lineiii
{
Raise
}{
\member
{
expr1
}}{}
\lineiii
{}{
\member
{
expr2
}}{}
\lineiii
{}{
\member
{
expr3
}}{}
\hline
\lineiii
{
Return
}{
\member
{
value
}}{}
\hline
\lineiii
{
RightShift
}{
\member
{
left
}}{}
\lineiii
{}{
\member
{
right
}}{}
\hline
\lineiii
{
Slice
}{
\member
{
expr
}}{}
\lineiii
{}{
\member
{
flags
}}{}
\lineiii
{}{
\member
{
lower
}}{}
\lineiii
{}{
\member
{
upper
}}{}
\hline
\lineiii
{
Sliceobj
}{
\member
{
nodes
}}{
list of statements
}
\hline
\lineiii
{
Stmt
}{
\member
{
nodes
}}{}
\hline
\lineiii
{
Sub
}{
\member
{
left
}}{}
\lineiii
{}{
\member
{
right
}}{}
\hline
\lineiii
{
Subscript
}{
\member
{
expr
}}{}
\lineiii
{}{
\member
{
flags
}}{}
\lineiii
{}{
\member
{
subs
}}{}
\hline
\lineiii
{
TryExcept
}{
\member
{
body
}}{}
\lineiii
{}{
\member
{
handlers
}}{}
\lineiii
{}{
\member
{
else
_}}{}
\hline
\lineiii
{
TryFinally
}{
\member
{
body
}}{}
\lineiii
{}{
\member
{
final
}}{}
\hline
\lineiii
{
Tuple
}{
\member
{
nodes
}}{}
\hline
\lineiii
{
UnaryAdd
}{
\member
{
expr
}}{}
\hline
\lineiii
{
UnarySub
}{
\member
{
expr
}}{}
\hline
\lineiii
{
While
}{
\member
{
test
}}{}
\lineiii
{}{
\member
{
body
}}{}
\lineiii
{}{
\member
{
else
_}}{}
\hline
\lineiii
{
Yield
}{
\member
{
value
}}{}
\hline
\end{longtableiii}
Tools/compiler/doc/compiler.tex
deleted
100644 → 0
View file @
3c1b4a40
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment