Dateien hochladen nach „compiler“
parent
ed63b1e75b
commit
403dcdad13
|
@ -0,0 +1,16 @@
|
|||
import ast
|
||||
code = open("compiler/target.py", 'r')
|
||||
code = code.read()
|
||||
name = input("name: ")
|
||||
type = int(input("typ: "))
|
||||
args = int(input("args amount: "))
|
||||
out = {type: {"name": name, "code": code, "args": args}}
|
||||
combinations = open("combinations.txt", 'r')
|
||||
combinations = combinations.read()
|
||||
combinations = ast.literal_eval(combinations)
|
||||
for i in out:
|
||||
combinations[i] = out[i]
|
||||
file = open("combinations.txt", 'w')
|
||||
file.write(str(combinations))
|
||||
file.close()
|
||||
print(out)
|
|
@ -0,0 +1,4 @@
|
|||
#executor
|
||||
#block
|
||||
#args
|
||||
print(int(args[0])+int(args[1]))
|
Loading…
Reference in New Issue