Added support for opcodes: (in DESC)
`KW_NAMES` `POP_JUMP_FORWARD_IF_FALSE` `POP_JUMP_FORWARD_IF_TRUE` `LOAD_GLOBAL`
This commit is contained in:
BIN
tests/compiled/test_kwnames.3.11.pyc
Normal file
BIN
tests/compiled/test_kwnames.3.11.pyc
Normal file
Binary file not shown.
BIN
tests/compiled/test_pop_jump_forward_if_false.3.11.pyc
Normal file
BIN
tests/compiled/test_pop_jump_forward_if_false.3.11.pyc
Normal file
Binary file not shown.
BIN
tests/compiled/test_pop_jump_forward_if_true.3.11.pyc
Normal file
BIN
tests/compiled/test_pop_jump_forward_if_true.3.11.pyc
Normal file
Binary file not shown.
3
tests/input/test_kwnames.py
Normal file
3
tests/input/test_kwnames.py
Normal file
@@ -0,0 +1,3 @@
|
||||
def foo(x):
|
||||
print(x)
|
||||
foo(x=1)
|
||||
3
tests/input/test_pop_jump_forward_if_false.py
Normal file
3
tests/input/test_pop_jump_forward_if_false.py
Normal file
@@ -0,0 +1,3 @@
|
||||
if 1 == 0:
|
||||
print('true')
|
||||
print('false (so jumping forward)')
|
||||
3
tests/input/test_pop_jump_forward_if_true.py
Normal file
3
tests/input/test_pop_jump_forward_if_true.py
Normal file
@@ -0,0 +1,3 @@
|
||||
if not 1 == 0:
|
||||
print('not true')
|
||||
print('true (so jumping forward)')
|
||||
5
tests/tokenized/test_kwnames.txt
Normal file
5
tests/tokenized/test_kwnames.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
def foo ( x ) : <EOL>
|
||||
<INDENT>
|
||||
print ( x ) <EOL>
|
||||
<OUTDENT>
|
||||
foo ( x = 1 ) <EOL>
|
||||
5
tests/tokenized/test_pop_jump_forward_if_false.txt
Normal file
5
tests/tokenized/test_pop_jump_forward_if_false.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
if 1 == 0 : <EOL>
|
||||
<INDENT>
|
||||
print ( 'true' ) <EOL>
|
||||
<OUTDENT>
|
||||
print ( 'false (so jumping forward)' ) <EOL>
|
||||
5
tests/tokenized/test_pop_jump_forward_if_true.txt
Normal file
5
tests/tokenized/test_pop_jump_forward_if_true.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
if not 1 == 0 : <EOL>
|
||||
<INDENT>
|
||||
print ( 'not true' ) <EOL>
|
||||
<OUTDENT>
|
||||
print ( 'true (so jumping forward)' ) <EOL>
|
||||
Reference in New Issue
Block a user