プロジェクト
概要
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.
関連プロジェクトを探す
読み込み中…