GitXplorerGitXplorer
0

brainfck

public
1 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
81fca848b2f9da6f22dbccc513c78a10de7521e6

Update brain-fuck.js

00o001 committed 2 years ago
Unverified
f9e1f7d9c03f03f9eb0b52f183a1debeb9a3dd65

Update README.md

00o001 committed 2 years ago
Unverified
b6e5d53440bfb073fe2dde0313ee84eed836436a

Update README.md

00o001 committed 2 years ago
Unverified
0406ff3409a0ee0cd21af891c988058cf1293653

Update brain-fuck.js

00o001 committed 2 years ago
Verified
c34f2e39a2182aa91f1334f9c9c727332d1d4569

Update README.md

committed 4 years ago
Unverified
7baa0b9ea8a0ba374ec9702e0fc63f70399d9a61

Initial commit

00o001 committed 6 years ago

README

The README file for this repository.

brainf

a brainfck interpreter written in javascript https://en.wikipedia.org/wiki/Brainfuck

//Usage:
let helloWorldNewWay = brainFuck({
  code: '+72.+29.+7..+3.-79.+55.+24.+3.-6.-8.-67.',
  memorySize: 1
});

console.log(helloWorldNewWay);
//output: Hello World!

let helloWorldNewWay2 = brainFuck({
  code: '+8[>+4[>++>+3>+3>+<4-]>+>+>->>+[<]<-]>>.>-3.+7..+3.>>.<-.<.+3.-6.-8.>>+.>++.',
});
console.log(helloWorldNewWay2);
//output: Hello World!

let helloWorldOldWay = brainFuck({
  code: '++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.',
});
console.log(helloWorldOldWay);
//output: Hello World!