mbjd / BFInterpreter

Brainfuck interpreter in C

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BFInterpreter

Brainfuck interpreter in C

./bf programs/test.bf
Lorem ipsum dolor sit amet.

There are two flags you can give:

  • -m Print a hexadecimal representation of the memory block left behind by the program
  • -t Measure and print the time needed to execute the program (including waiting for user input)

Or, if you want to enter some code quickly (like a REPL, just without the L):

./bf -t
Enter a BF program: -[------->+<]>-.-[->+++++<]>++.+++++++..+++.[--->+<]>-----.---[->+++<]>.-[--->+<]>---.+++.------.--------.-[--->+<]>.
Hello World!
Elapsed time: 0.000009 seconds

About

Brainfuck interpreter in C


Languages

Language:Brainfuck 84.9%Language:C 14.8%Language:Makefile 0.3%