Exemple #1
0
 def file_api(self, file_name):
     a, b = vm.evaluate(file_name, "file")
     return a, b
Exemple #2
0
 def cli_api(self, instructions_string):
     a, b = vm.evaluate(instructions_string, "string")
     return a, b
Exemple #3
0
from kite import vm
import sys

if len(sys.argv) == 2:
    a, b = vm.evaluate(sys.argv[1], "file")
    print(b)
else:
    raise Exception("Add a file to run")