Execute Brain****/Java: Difference between revisions

m
Categorization now in master page
mNo edit summary
m (Categorization now in master page)
Line 1:
{{implementation|Brainf***}}{{collection|RCBF}}[[Category:Java]]
In this implementation of [[Brainf***]] in [[Java]], the code is read in all at once and checked for uneven brackets (unequal amounts of [ and ] commands). If that error occurs, the code will obviously not be run.
 
Under the hood, the program memory is an <tt>ArrayList</tt> of Integers which expands "infinitely" (limited by your system's memory) to the right (still [http://en.wikipedia.org/wiki/Turing_completeness Turing complete]). So, if the pointer moves past zero to the left, the program will exit and a "Pointer out of range" error message will be displayed.
Anonymous user