Differences between version 15 and revision by previous author of Brainf*ck.
Other diffs: Previous Major Revision, Previous Revision, or view the Annotated Edit History
Newer page: | version 15 | Last edited on Friday, May 28, 2004 5:45:11 am | by AristotlePagaltzis | Revert |
Older page: | version 14 | Last edited on Thursday, May 27, 2004 10:18:13 pm | by DanielCristofani | Revert |
@@ -15,13 +15,16 @@
As they say about [Perl]: ''There are many ways to skin a Camel''
This also holds true for [Brainf*ck].
Standard [Brainf*ck] thinks of every variable as an integer with a range of 0 through to 255. Different variables can be accessed by the < and > instructions. For example, the code:
+
++>++++<
-would mean the following
:
-* Increase
the current variable by 2
+
+means
:
+
+* Increment
the current variable twice
* Move to the next variable
-* Increase this
variable by
4
+* Increment it
variable 4 times
* Move to the previous variable
After this bit of code, the variable we are currently referencing has a value of 2, and the next variable has a value of 4.