可编译成Rust类似Python的编程语言:Rusthon

admin 9年前

Rusthon是一个类似python编程语言,可以转换和编译成:Rust, C++, and JavaScript。

Simple Class Example

Rusthon input

class A:      def __init__(self, x:int, y:int, z:int=1):          let self.x : int = x          let self.y : int = y          let self.z : int = z        def mymethod(self, m:int) -> int:          return self.x * m

项目主页:http://www.open-open.com/lib/view/home/1419298779125