File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 199
199
Child ('ArrowToken' , kind = 'ArrowToken' ),
200
200
]),
201
201
202
+ # An infix binary expression like x + y.
203
+ # NOTE: This won't come directly out of the parser. Rather, it is the
204
+ # result of "folding" a SequenceExpr based on knowing the precedence
205
+ # relationships amongst the different infix operators.
206
+ Node ('InfixOperatorExpr' , kind = 'Expr' ,
207
+ children = [
208
+ Child ('LeftOperand' , kind = 'Expr' ),
209
+ Child ('OperatorOperand' , kind = 'Expr' ),
210
+ Child ('RightOperand' , kind = 'Expr' ),
211
+ ]),
212
+
202
213
# A floating-point literal
203
214
# 4.0
204
215
# -3.9
Original file line number Diff line number Diff line change 268
268
'MissingType' : 264 ,
269
269
'MissingPattern' : 265 ,
270
270
'GarbageNodes' : 266 ,
271
+ 'InfixOperatorExpr' : 267 ,
271
272
}
272
273
273
274
You can’t perform that action at this time.
0 commit comments