https://github.com/tkovs/cbrainfuck
:curly_loop: A brainfuck interpreter made in C.
https://github.com/tkovs/cbrainfuck
brainfuck brainfuck-interpreter c first-project
Last synced: 3 months ago
JSON representation
:curly_loop: A brainfuck interpreter made in C.
- Host: GitHub
- URL: https://github.com/tkovs/cbrainfuck
- Owner: tkovs
- License: mit
- Created: 2015-02-15T22:19:12.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2020-11-10T18:14:42.000Z (over 4 years ago)
- Last Synced: 2024-12-19T14:32:41.227Z (5 months ago)
- Topics: brainfuck, brainfuck-interpreter, c, first-project
- Language: C
- Homepage:
- Size: 313 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- AwesomeInterpreter - cbrainfuck
README
cbrainfuck
=====
[](https://travis-ci.org/tkovs/cbrainfuck)
[](https://github.com/tkovs/cbrainfuck/issues)
[](LICENCE)`cbrainfuck` is a brainfuck interpreter written in C
> Detail: This is the project I chose to do just as a way to learn how to use git and github, so all I want to test about project management tools and git/github I will do here
## Example
```cpp
#include
#include#include "include/cbrainfuck.h"
// argv[1] should be the cbrainfuck code file
// argv[2] should be the input file
int main(int argc, char **argv) {
char *s;
s = interpreter(argv[1], (argc > 2 ? argv[2] : "/dev/stdin"));if (_ERRORS_) {
fprintf(stderr, "%s\n", _MESSAGE_);
return 1;
} else {
printf ("%s", s);
free(s);
}return 0;
}
```[Some sources](http://esoteric.sange.fi/brainfuck/)
## Licence
Copyright (c) 2015 Vitor Rodrigues (tkovs)
Released under the [MIT licence](https://github.com/tkovs/cbrainfuck/blob/master/LICENCE)