浙江省高等学校教师教育理论培训

微信搜索“毛凌志岗前心得”小程序

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
A programmer friendly language that compiles to Lua.

MoonScript is a dynamic scripting language that compiles intoLua. It gives you the power of the fastest scripting language combined with a rich set of features.

class Thing
  name: "unknown"

class Person extends Thing
  say_name: => print "Hello, I am", @name

with Person!
  .name = "Moonscript"
  \say_name!

posted on 2011-11-11 11:37  lexus  阅读(286)  评论(0)    收藏  举报