A programming language like brainf*ck.
- Recommended extension:
.bc
- Environment:
char buf[1000000],*ptr=buf;int main(){f__();}
- Commands:
Command | C equivalent |
---|---|
[_0-9A-Za-z]{} |
void f_[_0-9A-Za-z](void){} |
> < |
ptr++; ptr--; |
+ - |
(*ptr)++; (*ptr)--; |
, . |
*ptr=getchar(); putchar(*ptr); |
() |
if(*ptr){} |
[_0-9A-Za-z] |
f_[_0-9A-Za-z](); |
# |
// |
- Note: you receive
-1
asEOF
in the input. - Note: out of bounds array accesses have undefined behavior.
A visualizer of Brainfunc. You can find it here.
- Note: it is a beta version now.
- Note: ad-blocks may disable indicating the cursor.
if (ptr == 100) ptr = 0;
if (ptr == -1) ptr = 99;
A compiler of Brainfunc. Here is a repository for homebrew.
Execute the command below.
brew install shuzaei/brainfunc/brainfunc
bcc <filename> [output filename]
Brainfunc language support.
Install from here.
Copyright 2021 shuzaei
Contact: shuzaei@gmail.com
URL: https://github.com/shuzaei/brainfunc/
License: GNU GPL v3.0