Menu

Syntax

AntifreeZZe

Syntax

Brainfuck syntax

Operator C equvivalent
beginning int m[size] = {0}; int v = 0;
'>' v++;
'<' v--;
'+' m[v]++;
'-' m[v]--;
'.' putchar(m[v]);
',' m[v] = getchar();
'[' while(m[v] > 0) {
']' }

Additional syntax

Operator Version C equivalent Description
'n' 1.0 m[v] = 0; Sets value of current cell to 0
'?' 1.0 m[v] = m[m[v]] Sets value of current cell equal to value of cell with num equal to value of current cell
'*' 1.0 m[v] = m[v]*m[v+1] Multiplies value of current cell with value of next cell
'/' 1.0 m[v] = m[v]/m[v+1] Divides value of current cell with value of next cell

WARNING! Do not put comments in code! Interpreter doesnt interprets in right.