bf-native
所属分类:编译器/解释器
开发工具:Python
文件大小:3KB
下载次数:0
上传日期:2022-09-15 22:49:09
上 传 者:
sh-1993
说明: 使用llvm lite作为编译器后端编写的brainf*ck编译器
(A brainf*ck compiler written using llvm-lite as a compiler backend)
文件列表:
bf-native (0, 2022-09-16)
bf-native\__init__.py (0, 2022-09-16)
bf-native\__main__.py (421, 2022-09-16)
bf-native\bf.py (4008, 2022-09-16)
hello.bf (839, 2022-09-16)
run.sh (103, 2022-09-16)
# bf-native
A brainf*ck compiler written using [llvm-lite](https://github.com/numba/llvmlite) as a compiler backend
## Example
**run.sh**
```bash
#!/bin/bash
set -xe
python "bf-native" hello.bf hello.ll && clang hello.ll -o hello.exe && ./hello.exe
```
```bash
$ ./run.sh
+ python bf-native hello.bf hello.ll
+ clang hello.ll -o hello.exe
+ ./hello.exe
Hello World!
```
近期下载者:
相关文件:
收藏者: