eXtended BrainFuck interpreter is a command line utility that offers users an interpreter for the Brainfuck programming language, only with more commands, such as condition check, goto, more commands for memory management, etc.
If you are familiar with the command console, you won’t have any problem when using this application. The correct syntax is as follows:
so for me… the problem is:
i can execute the program but can’t see the expected output…
the important question is why am i getting this kind of error?
i don’t know but maybe the error is caused by the added extended commands….
the error means that the input string can’t be assigned to the command…
A lot of the “buggy” behaviour you’re seeing is probably due to your lack of understanding of how Python’s input methods work.
The input method is first attempting to parse the string you’re passing to it as a Python command, and if it fails then it’s returning an empty string.
This is normal behaviour (not bug behaviour) and is done by the parser to keep your code from blowing up when it gets a string that isn’t valid Python.
On the other hand if you force the input method to be the same input method as Python uses then it gets the string as is and you can access its value like you would expect.
In this case you’re using print and therefore the input method needs to be the built-in python function print, and you’re making a big mistake by doing this.
print is a built-in Python function and what you’re doing here is telling it to run the input method of the string it’s passed, which is your version of print.
What you need to do is use sys.stdin.readline like you’re doing in your code, but you should only be doing that as a last resort.
If the string can be interpreted as a valid Python command then the input method should correctly parse it and return the correct command to be run.
Whether you already have an existing system in place or have a project in mind, you will be sure to find a way to transform your fleet with the vehicles and equipment that you will find in our showroom.
Our fleet is made up of some of the most prestigious and most technologically advanced vehicles on the market, which means that they are completely up to date and are fully equipped. From specific wheels and tyres for
100 A Print current value in memory.
101 S Clear memory.
102 G Get word from memory.
103 X Change memory value.
104 E Drop byte from memory.
105 D Drop word from memory.
106 F Set memory byte/word.
107 H Set current byte/word into memory.
108 C Compare memory value.
109 R Goto word.
110 P Print current word.
111 I Print current word if less than.
112 I Print current word if equal.
113 I Print current word if greater than.
114 I Print current word if equal.
115 S Drop byte from memory.
116 G Get word from memory.
117 X Change memory value.
118 E Drop byte from memory.
119 D Drop word from memory.
120 F Set memory byte/word.
121 H Set current byte/word into memory.
122 C Compare memory value.
123 R Goto word.
124 P Print current word.
125 I Print current word if less than.
126 I Print current word if equal.
127 I Print current word if greater than.
128 I Print current word if equal.
129 S Drop byte from memory.
130 G Get word from memory.
131 X Change memory value.
132 E Drop byte from memory.
133 D Drop word from memory.
134 F Set memory byte/word.
135 H Set current byte/word into memory.
136 C Compare memory value.
137 R Goto word.
138 P Print current word.
139 I Print current word if less than.
140 I Print current word if equal.
141 I Print current word if greater than.
142 I Print current word if equal.
Current known limitations:
* Not all interpreters have the same level of functionality. If you are familiar with the interpreter that you are using, don’t be surprised if it lacks some of the commands you are used to. It is a very powerful interpreter, but the implementation is not as complex as it could be.
brainfuck.exe [prompt] [memory file]
[prompt] the initial prompt before the program runs
[memory file] the file where the BrainFuck interpreter loads the program from
brainfuck.exe “Hello” < input.txt This example loads the file input.txt from the hard disk and executes the command line Hello. If you don't need to load a program from the disk, use the following syntax: brainfuck.exe [prompt] [memory file] [program] [prompt] the initial prompt before the program runs [memory file] the file where the BrainFuck interpreter loads the program from [program] the file that will be executed after loading the program from the memory file Example: brainfuck.exe "Hello" < input.txt "Hello" < input.txt The command line example above loads the program input.txt from the hard disk and executes it (and the program output will be displayed on the terminal). In this example, it is perfectly clear that the program is executed after the program is loaded from the hard disk. The second example however uses the < sequence, this is interpreted by the interpreter as an "if" statement and the program Hello is executed only if the program is not loaded from the hard disk. In this case the program output will be displayed on the terminal. While the aforementioned approach is perfectly fine for learning purposes, the user can implement his/her own conditions if he/she requires a more complex behavior. For example, suppose that a user needs to run the program loaded from the memory file, and if it is executed, then the program should be loaded from the hard disk, and if the program loaded from the hard disk is executed, then the program should be loaded from the memory file again. This is a very complex behavior that cannot be implemented without some sort of condition checking and tests. Reference There are two versions of eXtended BrainFuck interpreter, one compiled (doesn't require a terminal) and one interpreted (requires a terminal). They can be used separately or together, when running the interpreter in non-interactive mode, the user may need to switch between the interpreted and
This is extended Brainfuck interpreter. Only the following instructions are supported:
Here is a small example:
And now the single & double quotes:
These instructions are just examples. Most of them are simply converted from Brainfuck instructions, some of them are logical modifications, such as , and <== for <=>, etc.
Please feel free to drop me an email to tell me what you think about this program. Thanks!
This program is not maintained by me. I am only giving it away for free.
Information about how to install/use it can be found at
Any possible copyright issues on the source code will be resolved between the original author and me.The Ballad of Sreda
“The Ballad of Sreda” is a poem in commemoration of Lieutenant Commander
Requires a Microsoft Windows PC, or an Apple Mac (A3 or later) with a DVD drive.
Memory: Recommended 1.5 GB RAM.
Storage: 5GB available space.
This is an interactive class. To attend, you will need to download and install the Unity Editor.
In order to avoid any technical issues, it is recommended to use the latest version of Unity 2017.1.0.
The Unity project is made for Windows OS and only Mac OS compatible at the moment.