项目
在 GitHub 查看
arthaud/c2bf
关于
Compiler from C to brainfuck
开发工具实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 正在收集历史
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文c2bf
c2bf is a compiler from a subset of C to brainfuck.
Dependencies
You will need ocamlbuild and ocamlfind.
Ubuntu
To install the dependencies on Ubuntu, run the following commands:
$ sudo apt install opam ocamlbuild
$ opam init
$ eval $(opam config env)
$ opam install ocamlfind
macOS
To install the dependencies on macOS, run the following commands:
$ brew install ocaml ocamlbuild ocaml-findlib
Build
Just run make build to build c2bf.
How to use
usage: ./c2bf.native [options] <C source-file>.
The brainfuck output is in a.bf.
I recommend you beef http://kiyuko.org/software/beef as a brainfuck interpreter.
See ./c2bf.native --help for options.
Examples
There are examples in the directory tests. You should try them !
Why ? This is useless !
Because it's fun, and I like having fun.
探索相关项目
加载中…