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

Content added Content deleted
(Brat BF interpreter)
 
(Update to use prototype)
Line 26: Line 26:


#Run instructions
#Run instructions
bf.run = {
bf.prototype.run = {
current_instruction = null
current_instruction = null


Line 76: Line 76:


#Precalcuate '[' and ']' jump locations
#Precalcuate '[' and ']' jump locations
bf.calculate_jumps = {
bf.prototype.calculate_jumps = {
forwards = []
forwards = []
jumps = [:]
jumps = [:]