diff options
| author | Damien George <damien.p.george@gmail.com> | 2018-06-19 14:10:29 +1000 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2018-06-22 17:00:29 +1000 |
| commit | 36e474e83fa26cb78a9312dce5dc53a467c5d8b7 (patch) | |
| tree | d68cbd5f1a996c7b61c2620e14c7966b1b0ad726 /py/grammar.h | |
| parent | 1a7109d65aa87596c7ce1824037fe298109962e9 (diff) | |
py/compile: Combine or_test and and_test compile functions.
Diffstat (limited to 'py/grammar.h')
| -rw-r--r-- | py/grammar.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/py/grammar.h b/py/grammar.h index 50611bb9c..37b97a191 100644 --- a/py/grammar.h +++ b/py/grammar.h @@ -231,8 +231,8 @@ DEF_RULE(lambdef_nocond, c(lambdef), and_blank(4), tok(KW_LAMBDA), opt_rule(vara // power: atom_expr ['**' factor] // atom_expr: 'await' atom trailer* | atom trailer* -DEF_RULE(or_test, c(or_test), list, rule(and_test), tok(KW_OR)) -DEF_RULE(and_test, c(and_test), list, rule(not_test), tok(KW_AND)) +DEF_RULE(or_test, c(or_and_test), list, rule(and_test), tok(KW_OR)) +DEF_RULE(and_test, c(or_and_test), list, rule(not_test), tok(KW_AND)) DEF_RULE_NC(not_test, or(2), rule(not_test_2), rule(comparison)) DEF_RULE(not_test_2, c(not_test_2), and(2), tok(KW_NOT), rule(not_test)) DEF_RULE(comparison, c(comparison), list, rule(expr), rule(comp_op)) |
