Dateien hochladen nach „“

master
Justus Jan Nico Wolff 2022-06-06 12:02:28 +02:00
parent eab800c605
commit 7dcbcae167
3 changed files with 23 additions and 0 deletions

15
executer.py 100644
View File

@ -0,0 +1,15 @@
target = open("target.jc", 'r')
target = target.read()
target = target.splitlines()
for line in target:
line2 = line.split()
if line2[1] == "=" or line2[0] == "import":
exec(line)
else:
temp = line2[0]
temp = temp + "("
line2.remove(line2[0])
for i in line2:
temp = temp + i + ", "
temp = temp + ")"
exec(temp)

2
target.jc 100644
View File

@ -0,0 +1,2 @@
import binarytools
print binarytools.i2b(2)

6
ziel.txt 100644
View File

@ -0,0 +1,6 @@
funktionen ja
variablen ja
import ja
schleifen
def und class