Last active
December 2, 2018 10:18
-
-
Save leohowell/81f07ebabf3621e115430ea52de273e4 to your computer and use it in GitHub Desktop.
gibbs-example.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from gibbs.vm import VirtualMachine | |
text1 = ''' def foo(a, b): return a + b | |
print(foo(1, 99)) ''' | |
vm = VirtualMachine() | |
code = vm.text_to_code(text1) | |
vm.run_code(code) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment