Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arthaud/c2bf
Compiler from C to brainfuck
https://github.com/arthaud/c2bf
Last synced: 11 days ago
JSON representation
Compiler from C to brainfuck
- Host: GitHub
- URL: https://github.com/arthaud/c2bf
- Owner: arthaud
- License: gpl-2.0
- Created: 2014-07-27T01:34:33.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2023-05-21T07:36:33.000Z (over 1 year ago)
- Last Synced: 2024-10-16T04:53:46.748Z (27 days ago)
- Language: OCaml
- Size: 41 KB
- Stars: 215
- Watchers: 6
- Forks: 12
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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
```
#### macOSTo 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] `.
The brainfuck output is in `a.bf`.I recommend you beef [http://kiyuko.org/software/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.