Project Description
The Binary Code Interpreter is a small and funny programming languaage.
This interpreter works a bit like a Turing Machine.
Howto
In the current version you can just access the interpreter as an .NET Library. So create a new app and add a reference to the binary of this project.
You have to put an string containing just 0,1, SPACE's and RETURN's into to Interpreter and then call RunCode. Every command is seperated with SPACE's and RETURN's.
Availible Commands
- 1 - Goto the next Memory (one right)
- 0 - Go the previous Memory (one left)
- 10 - Decrease Current Memory
- 11 - Increase Current Memory
- 111 - Writes current Memory onto the Console
- 000 - Reads one Number from the Console into the Memory
- 1010 - Registers an Backjump Adress
- 0101 - Jumps back if current Value is not 0
Example
This code reads two numbers and prints out the sum:
000 1 000 1010 0 11 1 10 0101 0 111