summaryrefslogtreecommitdiff
path: root/Tools/compiler/doc/astdocgen.py
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-09-28 17:22:35 +0000
committerFred Drake <fdrake@acm.org>2001-09-28 17:22:35 +0000
commit19405a4a2a68570cae67501935adea3f375f84bf (patch)
tree69d300a49823d77f2bce9b9cdc6b5c88bcd96fa6 /Tools/compiler/doc/astdocgen.py
parent3c1b4a40dc5f9eebd1ab6a2c2770eb4471ce634d (diff)
downloadcpython-git-19405a4a2a68570cae67501935adea3f375f84bf.tar.gz
Removed files no longer needed.
Diffstat (limited to 'Tools/compiler/doc/astdocgen.py')
-rw-r--r--Tools/compiler/doc/astdocgen.py30
1 files changed, 0 insertions, 30 deletions
diff --git a/Tools/compiler/doc/astdocgen.py b/Tools/compiler/doc/astdocgen.py
deleted file mode 100644
index 41e8c4bb81..0000000000
--- a/Tools/compiler/doc/astdocgen.py
+++ /dev/null
@@ -1,30 +0,0 @@
-# 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()
-