Skip to content

SchernHe/brainfck-interpreter

Repository files navigation

Brainfck-Interpreter

Python implementation of the brainf*ck interpreter first published by Urban Müller.

About the interpreter

  • Consists of ...
    • 8 commands
    • data pointer
    • instruction pointer
  • Turing-complete i.e. can be used to write any program, but unhandy becasue little abstraction

Commands

  • > Move ponter to the right
  • < Move pointer to the left
  • + Increment memory cell at the pointer
  • - Decrement memory cell at the pointer
  • . Output the character signified by the cell at the pointer
  • , Input a character and store it in the cell a the pointer
  • [ Jump past the matching ]if the cell at the pointer is 0
  • ] Jump back to the matching [ if the cell at the pointer is nonzero

Any other characters are considered to be comments and ignored.

Links

Credits

This repository is a result of Coding Challenges by John Crickett.

About

Python implementation of the brainfck interpreter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages