Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
19405a4a
Kaydet (Commit)
19405a4a
authored
Eyl 28, 2001
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Removed files no longer needed.
üst
3c1b4a40
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
283 deletions
+0
-283
astdocgen.py
Tools/compiler/doc/astdocgen.py
+0
-30
asttable.tex
Tools/compiler/doc/asttable.tex
+0
-253
compiler.tex
Tools/compiler/doc/compiler.tex
+0
-0
No files found.
Tools/compiler/doc/astdocgen.py
deleted
100644 → 0
Dosyayı görüntüle @
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
Dosyayı görüntüle @
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
Dosyayı görüntüle @
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