binary_expr -> bin_op to match Python AST

I know binary_expr is more natural, but as with things Python we
sometimes sacrifice elegance and clarity for Python Fascism.
This commit is contained in:
rocky
2019-12-11 13:35:21 -05:00
parent 6f51f8910c
commit cc55fa1de1
5 changed files with 17 additions and 10 deletions

View File

@@ -189,7 +189,9 @@ TABLE_DIRECT = {
'INPLACE_AND': ( '&=' ,),
'INPLACE_OR': ( '|=' ,),
'INPLACE_XOR': ( '^=' ,),
'binary_expr': ( '%c %c %c', 0,
# bin_op (formerly "binary_expr") is the Python AST BinOp
'bin_op': ( '%c %c %c', 0,
(-1, 'binary_op'),
( 1, 'expr' ) ),