> Boolean
[Function: Boolean]
> Boolean()
false
> Boolean('true')
true
> new Boolean('true')
[Boolean: true]
Forwarded from 为所欲为
This media is not supported in your browser
VIEW IN TELEGRAM
Forwarded from 王境泽
This media is not supported in your browser
VIEW IN TELEGRAM
Forwarded from GreaterFire 大火酱
trojan的话 因为后面是个http服务器 所以除了trojan的连接都会连到http上去
#PL #project https://github.com/duangsuse/Lite
前几天写的一门脚本语言解释器,可惜没做完转战 GeekApk 后端服务器了(逃
现在一堆 bug,不过看样子体积或许是最小的了,好耶!
前几天写的一门脚本语言解释器,可惜没做完转战 GeekApk 后端服务器了(逃
现在一堆 bug,不过看样子体积或许是最小的了,好耶!
GitHub
duangsuse/Lite
😃 一个写了几天浪费青春浪费时光的垃圾 JVM AST 解释器脚本语言. Contribute to duangsuse/Lite development by creating an account on GitHub.
def System.getEnv # Java 这里比较 emmmmm.... 没有用标准的方法名风格
return System.getenv() # Just an alias of System#getenv
System.env::HOME #=> "/home/dse"
# instead of
System.getEnv()::HOME
import android.widget
import android.view
def LinearLayout.add(view)
self.addView view
def Button.new
return Button(ctx) # or Button(lite[:ctx])
layout << Button.new
# instead of
layout.addView(Button(ctx))
a = { self: nil }
def a.new(obj)
a->self { obj: obj }
a->print { print self.obj }
aa = a.new 1 + 1
aa.print()
如果是 @a 就直接用
@a->new do |obj| 吧