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:
MrDakik
2023-07-18 18:33:03 +03:00
parent bb54b27cd1
commit da859f5a2b
12 changed files with 110 additions and 11 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,3 @@
def foo(x):
print(x)
foo(x=1)

View File

@@ -0,0 +1,3 @@
if 1 == 0:
print('true')
print('false (so jumping forward)')

View File

@@ -0,0 +1,3 @@
if not 1 == 0:
print('not true')
print('true (so jumping forward)')

View File

@@ -0,0 +1,5 @@
def foo ( x ) : <EOL>
<INDENT>
print ( x ) <EOL>
<OUTDENT>
foo ( x = 1 ) <EOL>

View File

@@ -0,0 +1,5 @@
if 1 == 0 : <EOL>
<INDENT>
print ( 'true' ) <EOL>
<OUTDENT>
print ( 'false (so jumping forward)' ) <EOL>

View File

@@ -0,0 +1,5 @@
if not 1 == 0 : <EOL>
<INDENT>
print ( 'not true' ) <EOL>
<OUTDENT>
print ( 'true (so jumping forward)' ) <EOL>