fubark / cyber-python

Repository from Github https://github.comfubark/cyber-pythonRepository from Github https://github.comfubark/cyber-python

cyber-python

Installation

pip install cyberlang

Usage

from cyber import CyberVM

vm = CyberVM()
vm.eval("print 'hello world!'")
from cyber import CyberVM

vm = CyberVM()

# override cyber's print function with a python callback
@vm.function('core.print')
    def _print(string: str):
        print(string)

vm.eval("print 'hello world!'")

About

License:MIT License


Languages

Language:Python 81.7%Language:Makefile 13.1%Language:Jupyter Notebook 5.2%