Skip to content

Program to convert brainfuck source code into C source code

License

Notifications You must be signed in to change notification settings

praharshjain/brainfuck-to-c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

brainfuck-to-c

Program to convert brainfuck source code into C source code

Conversion table

The program translates Brainfuck code into C using the following substitutions

brainfuck command C equivalent
(Program Start) char array[30000] = {0};
char *ptr=array;
> ++ptr;
< --ptr;
+ ++*ptr;
- --*ptr;
. putchar(*ptr);
, *ptr=getchar();
[ while (*ptr) {
] }

License

MIT

Releases

No releases published

Packages

No packages published

Languages