Skip to content

Instantly share code, notes, and snippets.

@leohowell
Last active December 2, 2018 10:18
Show Gist options
  • Save leohowell/81f07ebabf3621e115430ea52de273e4 to your computer and use it in GitHub Desktop.
Save leohowell/81f07ebabf3621e115430ea52de273e4 to your computer and use it in GitHub Desktop.
gibbs-example.py
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