المشاريع
حول
Compiler from C to brainfuck
لغات البرمجة وبيئات التشغيلالنمو المقاس للنجوم
- خلال 24 ساعة
- ٠
- خلال 7 أيام
- +٢
- خلال 15 يومًا
- +٢
- خلال شهر
- جارٍ جمع السجل
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
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.
استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…