| 1 | -- ASDL's five builtin types are identifier, int, string, object, bool
|
|---|
| 2 |
|
|---|
| 3 | module 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 |
|
|---|
|
|---|