Mercurial > python-compiler.rs
comparison src/python_ast.rs @ 82:2d906d1cb940
Add ast.Subscript.
author | Bastien Orivel <eijebong@bananium.fr> |
---|---|
date | Mon, 13 Jun 2016 21:32:43 +0200 |
parents | dc82a0d8f144 |
children | e59cd5754268 |
comparison
equal
deleted
inserted
replaced
81:dc82a0d8f144 | 82:2d906d1cb940 |
---|---|
106 NameConstant(String), | 106 NameConstant(String), |
107 Ellipsis, | 107 Ellipsis, |
108 | 108 |
109 // the following expression can appear in assignment context | 109 // the following expression can appear in assignment context |
110 Attribute(Box<expr>, String, expr_context), | 110 Attribute(Box<expr>, String, expr_context), |
111 //Subscript(Box<expr>, slice, expr_context), | 111 Subscript(Box<expr>, Box<slice>, expr_context), |
112 //Starred(Box<expr>, expr_context), | 112 //Starred(Box<expr>, expr_context), |
113 Name(String, expr_context), | 113 Name(String, expr_context), |
114 List(Vec<expr>, expr_context), | 114 List(Vec<expr>, expr_context), |
115 Tuple(Vec<expr>, expr_context), | 115 Tuple(Vec<expr>, expr_context), |
116 } | 116 } |