source: trunk/essentials/dev-lang/python/Parser/Python.asdl@ 3609

Last change on this file since 3609 was 3225, checked in by bird, 19 years ago

Python 2.5

File size: 4.2 KB
Line 
1-- ASDL's five builtin types are identifier, int, string, object, bool
2
3module Python version "$Revision: 43614 $"
4{
5 mod = Module(stmt* body)
6 | Interactive(stmt* body)
7 | Expression(expr body)
8
9 -- not really an actual node but useful in Jython's typesystem.
10 | Suite(stmt* body)
11
12 stmt = FunctionDef(identifier name, arguments args,
13 stmt* body, expr* decorators)
14 | ClassDef(identifier name, expr* bases, stmt* body)
15 | Return(expr? value)
16
17 | Delete(expr* targets)
18 | Assign(expr* targets, expr value)
19 | AugAssign(expr target, operator op, expr value)
20