> 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| 吧
技术相关:https://ohmlang.github.io/editor/#ca3aae7d3a44999d72acd0c0e2d7750d 目前有一个 bug 的语法规则,请看 issue
https://github.com/duangsuse/Lite/issues/7 Lite AstJson 序列化标准
https://github.com/duangsuse/Lite/issues/7 Lite AstJson 序列化标准
GitHub
Lite AST JSON Serialization #7
Lite JSON Ast node type, file, line, column nodes compstmt statements : node[] block block_type: : string (program, brace, do, def, flow, loop, scope) arguments ...
另外 #geekapk 目前依然是在咸鱼(不)做的
可以在 GeekApkR 组织里查到,不过最新动态都在组里讨论
https://bbs.letitfly.me/d/680/4 可以看到一部分(昨天晚上想了一会我修改了关于评论和应用模型的两个细节)
可以在 GeekApkR 组织里查到,不过最新动态都在组里讨论
https://bbs.letitfly.me/d/680/4 可以看到一部分(昨天晚上想了一会我修改了关于评论和应用模型的两个细节)
bbs.letitfly.me
GeekApk 后端设计 - LetITFly BBS,不仅仅是 MyAndroidTools BBS