Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hanxi/lua_run
在Android上编辑和运行Lua代码
https://github.com/hanxi/lua_run
Last synced: 6 days ago
JSON representation
在Android上编辑和运行Lua代码
- Host: GitHub
- URL: https://github.com/hanxi/lua_run
- Owner: hanxi
- License: mit
- Created: 2014-01-14T04:48:33.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-08-22T04:00:07.000Z (about 9 years ago)
- Last Synced: 2023-03-15T02:32:48.683Z (over 1 year ago)
- Language: C
- Homepage:
- Size: 15.5 MB
- Stars: 13
- Watchers: 3
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
lua_run
=======## android lua runer.
* 在安卓上编辑和运行lua
* 支持lua语法高亮
* 支持lua5.2.3版本
* 集成lua5.2离线文档
## 编译步骤
```
$ cd lua_run
$ android update project -p . -t android-19
$ sh build_native.sh
```## 使用luasocket库
* 拷贝jni/luasocket/src/*.lua 到/sdcard/.luaRun/目录下
* 测试luasocket
```lua
local socket = require"socket"
local mime = require"mime"
print("Hello from " .. socket._VERSION .. " and " .. mime._VERSION .. "!")
```## other
### 制作过程中借用了下面内容
* jota编辑器
* 文件对话框
* 角标
* lua文档
### 截图
![编辑器](img/1.jpg)
![运行结果](img/2.jpg)
![离线文档](img/3.jpg)