Skip to content

mbjd/BFInterpreter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published