jc/executer.py

17 lines
430 B
Python

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)
input("programm done")