summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2001-09-20 14:59:00 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2001-09-20 14:59:00 (GMT)
commite54b5b4f81d7275c1c76f1ae1a757709fca1bb2b (patch)
tree59e0eb1a43abf51215afd6abd3842ce60b6f396d /Tools
parentdd4d1c4f5d1b5c91ed2fb1a9209ee3434bc20a2b (diff)
downloadcpython-e54b5b4f81d7275c1c76f1ae1a757709fca1bb2b.zip
cpython-e54b5b4f81d7275c1c76f1ae1a757709fca1bb2b.tar.gz
cpython-e54b5b4f81d7275c1c76f1ae1a757709fca1bb2b.tar.bz2
Moved to Tools/compiler along with astgen.py
Diffstat (limited to 'Tools')
-rw-r--r--Tools/compiler/compiler/ast.txt87
1 files changed, 0 insertions, 87 deletions
diff --git a/Tools/compiler/compiler/ast.txt b/Tools/compiler/compiler/ast.txt
deleted file mode 100644
index 3f8953b..0000000
--- a/Tools/compiler/compiler/ast.txt
+++ /dev/null
@@ -1,87 +0,0 @@
-# This file describes the nodes of the AST in ast.py. The module is
-# generated by astgen.py.
-# The descriptions use the following special notation to describe
-# properties of the children:
-# * this child is not a node
-# ! this child is a sequence that contains nodes in it
-# & this child may be set to None
-# = ... a default value for the node constructor (optional args)
-Module: doc*, node
-Stmt: nodes!
-Function: name*, argnames*, defaults!, flags*, doc*, code
-Lambda: argnames*, defaults!, flags*, code
-Class: name*, bases!, doc*, code
-Pass:
-Break:
-Continue:
-For: assign, list, body, else_&
-While: test, body, else_&
-If: tests!, else_&
-Exec: expr, locals&, globals&
-From: modname*, names*
-Import: names*
-Raise: expr1&, expr2&, expr3&
-TryFinally: body, final
-TryExcept: body, handlers!, else_&
-Return: value
-Yield: value
-Const: value*
-Print: nodes!, dest&
-Printnl: nodes!, dest&
-Discard: expr
-AugAssign: node, op*, expr
-Assign: nodes!, expr
-AssTuple: nodes!
-AssList: nodes!
-AssName: name*, flags*
-AssAttr: expr, attrname*, flags*
-ListComp: expr, quals!
-ListCompFor: assign, list, ifs!
-ListCompIf: test
-List: nodes!
-Dict: items!
-Not: expr
-Compare: expr, ops!
-Name: name*
-Global: names*
-Backquote: expr
-Getattr: expr, attrname*
-CallFunc: node, args!, star_args& = None, dstar_args& = None
-Keyword: name*, expr
-Subscript: expr, flags*, subs!
-Ellipsis:
-Sliceobj: nodes!
-Slice: expr, flags*, lower&, upper&
-Assert: test, fail&
-Tuple: nodes!
-Or: nodes!
-And: nodes!
-Bitor: nodes!
-Bitxor: nodes!
-Bitand: nodes!
-LeftShift: (left, right)
-RightShift: (left, right)
-Add: (left, right)
-Sub: (left, right)
-Mul: (left, right)
-Div: (left, right)
-Mod: (left, right)
-Power: (left, right)
-FloorDiv: (left, right)
-UnaryAdd: expr
-UnarySub: expr
-Invert: expr
-
-init(Function):
- self.varargs = self.kwargs = None
- if flags & CO_VARARGS:
- self.varargs = 1
- if flags & CO_VARKEYWORDS:
- self.kwargs = 1
-
-init(Lambda):
- self.varargs = self.kwargs = None
- if flags & CO_VARARGS:
- self.varargs = 1
- if flags & CO_VARKEYWORDS:
- self.kwargs = 1