Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 454 Bytes

README.md

File metadata and controls

22 lines (17 loc) · 454 Bytes

BRAINFUCK

Simple BRAINFUCK interpreter without anything too fancy.

You can interpret a program this way:

  std::stringstream ss;
  bfi::Brainfuck bf(ss);
  bf.FromString("++++.");
  bf.Run();
  return ss.str();

NB: The above outputs values in hex. If you want raw output, you will need to add this line before interpretation:

  std::stringstream ss;
  bfi::Brainfuck bf(ss);
  bf.OutputMode(bfi::Brainfuck::OutputMode::raw);