Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/RitterHou/yui
https://github.com/RitterHou/yui
compiler decompiler virtual-machine
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/RitterHou/yui
- Owner: RitterHou
- License: mit
- Created: 2018-10-15T07:04:55.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-22T06:46:14.000Z (almost 6 years ago)
- Last Synced: 2024-08-03T17:19:00.349Z (5 months ago)
- Topics: compiler, decompiler, virtual-machine
- Language: Go
- Homepage:
- Size: 30.3 KB
- Stars: 16
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Yui
_用go语言实现四则运算_![GitHub](https://img.shields.io/github/license/mashape/apistatus.svg)
### 安装
在 Mac 上可以通过 homebrew 进行安装brew tap ritterhou/tap && brew install yui
其它平台需要下载源代码并编译或者在Release页面直接[下载](https://github.com/RitterHou/yui/releases)已经编译好的文件
### 使用
打印帮助文档:
./yui
编译源代码(获取测试文件 [yui.test](https://raw.githubusercontent.com/RitterHou/yui/master/yui.test))./yui build yui.test
运行源代码文件或者字节码文件./yui run yui.test
./yui run yui.yuicode反编译字节码文件得到计算指令
./yui dec yui.yuicode
进入交互式的命令行./yui shell
如果你已经安装了 rlwrap,那么你可以使用 rlwrap 在输入表达式时进行括号匹配
rlwrap ./yui shell
[> 视频演示](https://www.bilibili.com/video/av34478667)