Add spark option to show grammer. Revise uncompyle options. Start to reorganize

tests more
This commit is contained in:
rocky
2015-12-22 03:54:17 -05:00
parent d3d375d954
commit 4f0fe90eef
67 changed files with 137 additions and 57 deletions

View File

@@ -0,0 +1,7 @@
# Tests:
# ifstmt ::= testexpr _ifstmts_jump
# _ifstmts_jump ::= c_stmts_opt JUMP_FORWARD COME_FROM
if True:
b = False

View File

@@ -0,0 +1,9 @@
# Tests:
# ifelsestmt ::= testexpr c_stmts_opt JUMP_FORWARD else_suite COME_FROM
# else_suite ::= suite_stmts
if True:
b = 1
else:
d = 2

View File

@@ -1,4 +0,0 @@
# Tests:
# ifstmt ::= testexpr _ifstmts_jump
if a:
b = c

View File

@@ -1,7 +0,0 @@
# Tests
# ifelsestmt ::= testexpr c_stmts_opt JUMP_FORWARD else_suite COME_FROM
if a:
b = c
else:
d = e