首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Java > 拨号是Android的Lisp

拨号是Android的Lisp

  • 资源大小:29.85 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: android lisp 拨号

资 源 简 介

Development of a simple Lisp interpreter for Android OS. To date, some basic functionality is implemented, allowing lisp code to be run. Java functions can be invoked via the :invoke primitive, and java objects can be created via the :new primitive. For example, the following pops up a new web browser: (:invoke activity "setContentView" (:new "android.webkit.WebView" activity)) Java strings, booleans and integers are automatically commuted to/from their relevant lisp types, for example: (:invoke "hello world" "length") will return an integer result of 11. A minimal but usable lisp dialect is supported, including: lambda, define, if, cons, car, cdr, some arithmetic operators (+,-,/,*,=,<,>), let (lexically scoped), lexical closures, set,
VIP VIP
0.169831s