用 Go 编写的类 Ruby 语言 Rooby

MIT
Google Go
跨平台
2017-04-26
王练

Rooby 是一种面向对象的语言,可以看作是 Go 和 Ruby 的结合体,旨在实现高效微服务开发。

支持特性

  • Can be compiled into bytecode (with .robc extension)

  • Can evaluate bytecode directly

  • Everything is object

  • Support comment

  • Object and Class

    • Top level main object

    • Constructor

    • Support class method

    • Support inheritance

    • Support instance variable

    • Support self

  • Variables

    • Constant

    • Local variable

    • Instance variable

  • Method

    • Support evaluation with arguments

    • Support evaluation without arguments

    • Support evaluation with block (closure)

  • BuiltIn Data Types (All of them are classes )

    • Class

    • Integer

    • String

    • Boolean

    • nil (has this type internally but parser hasn't support yet)

    • Hash

    • Array

  • Flow control

    • If statement

    • Haven't support for or while yet

  • IO

    • Just puts for now

加载中

评论(0)

暂无评论

暂无资讯

暂无问答

暂无博客

返回顶部
顶部