Skip to content

BarbosaJackson/cbrainfuck

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cbrainfuck

Build Status 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

#include <stdio.h>
#include <stdlib.h>

#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

Licence

Copyright (c) 2015 Vitor Rodrigues (tkovs)

Released under the MIT licence

About

➰ A brainfuck interpreter made in C.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 65.2%
  • C++ 31.3%
  • Makefile 3.5%