summaryrefslogtreecommitdiff
path: root/Parser/Python.asdl
diff options
context:
space:
mode:
Diffstat (limited to 'Parser/Python.asdl')
-rw-r--r--Parser/Python.asdl3
1 files changed, 2 insertions, 1 deletions
diff --git a/Parser/Python.asdl b/Parser/Python.asdl
index cedf37a2d9..7b2a8737ab 100644
--- a/Parser/Python.asdl
+++ b/Parser/Python.asdl
@@ -54,6 +54,7 @@ module Python
-- BoolOp() can use left & right?
expr = BoolOp(boolop op, expr* values)
+ | NamedExpr(expr target, expr value)
| BinOp(expr left, operator op, expr right)
| UnaryOp(unaryop op, expr operand)
| Lambda(arguments args, expr body)
@@ -87,7 +88,7 @@ module Python
-- col_offset is the byte offset in the utf8 string the parser uses
attributes (int lineno, int col_offset, int? end_lineno, int? end_col_offset)
- expr_context = Load | Store | Del | AugLoad | AugStore | Param
+ expr_context = Load | Store | Del | AugLoad | AugStore | Param | NamedStore
slice = Slice(expr? lower, expr? upper, expr? step)
| ExtSlice(slice* dims)