Two 3.0 rules ...

- ifstmtlastl
- ifnotstmt30
This commit is contained in:
rocky
2019-11-14 03:57:14 -05:00
parent 78a595c8cf
commit 7c8f3cc9ec
2 changed files with 11 additions and 3 deletions

View File

@@ -183,7 +183,10 @@ def customize_for_version3(self, version):
# we definitely don't include in the source _[dd].
TABLE_DIRECT.update({
'ifstmt30': ( "%|if %c:\n%+%c%-",
(0, "testexpr_then"),
(0, "testfalse_then"),
(1, "_ifstmts_jump30") ),
'ifnotstmt30': ( "%|if not %c:\n%+%c%-",
(0, "testtrue_then"),
(1, "_ifstmts_jump30") ),
"or30": ( "%c or %c",
(0, "expr"),