GitXplorerGitXplorer
0

brainfck

public
1 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
b7e00d6c61765d09ba9f9804decd73b66b910182

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!