Add reduce check for aug_assign1

This commit is contained in:
rocky
2020-07-07 08:20:09 -04:00
parent 815ae2c5cd
commit 5079164db2
3 changed files with 14 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
# Copyright (c) 2020 Rocky Bernstein
def aug_assign1_check(self, lhs, n, rule, ast, tokens, first, last):
# print("XXX", first, last, rule)
# for t in range(first, last): print(tokens[t])
# print("="*40)
expr = ast[0]
return expr == "expr" and expr[0] == "or"
return False