Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 4 days 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 (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2020-11-10T18:14:42.000Z (about 4 years ago)
- Last Synced: 2024-11-17T17:43:21.603Z (about 1 month 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
=====
[![Build Status](https://travis-ci.org/tkovs/cbrainfuck.svg?branch=master)](https://travis-ci.org/tkovs/cbrainfuck)
[![Issues](https://img.shields.io/github/issues/tkovs/cbrainfuck.svg)](https://github.com/tkovs/cbrainfuck/issues)
[![Licence](https://img.shields.io/badge/licence-MIT-red.svg?style=flat)](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)