Changeset 388 for python/vendor/current/Parser/Python.asdl
- Timestamp:
- Mar 19, 2014, 11:11:30 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/vendor/current/Parser/Python.asdl
r2 r388 1 1 -- ASDL's five builtin types are identifier, int, string, object, bool 2 2 3 module Python version "$Revision : 62047$"3 module Python version "$Revision$" 4 4 { 5 5 mod = Module(stmt* body) … … 12 12 stmt = FunctionDef(identifier name, arguments args, 13 13 stmt* body, expr* decorator_list) 14 | ClassDef(identifier name, expr* bases, stmt* body, expr *decorator_list)14 | ClassDef(identifier name, expr* bases, stmt* body, expr* decorator_list) 15 15 | Return(expr? value) 16 16 … … 35 35 36 36 | Import(alias* names) 37 | ImportFrom(identifier module, alias* names, int? level)37 | ImportFrom(identifier? module, alias* names, int? level) 38 38 39 39 -- Doesn't capture requirement that locals must be … … 57 57 | IfExp(expr test, expr body, expr orelse) 58 58 | Dict(expr* keys, expr* values) 59 | Set(expr* elts) 59 60 | ListComp(expr elt, comprehension* generators) 61 | SetComp(expr elt, comprehension* generators) 62 | DictComp(expr key, expr value, comprehension* generators) 60 63 | GeneratorExp(expr elt, comprehension* generators) 61 64 -- the grammar constrains where yield expressions can occur
Note:
See TracChangeset
for help on using the changeset viewer.