Class: Brainfuck::AST::DecNode

Inherits:
Object
  • Object
show all
Defined in:
lib/brainfuck/ast.rb

Instance Method Summary collapse

Instance Method Details

#bytecode(g) ⇒ Object



71
72
73
74
75
76
77
78
79
80
81
82
# File 'lib/brainfuck/ast.rb', line 71

def bytecode(g)
  g.push_local 0
  g.push_local 1

  g.dup_many(2)
  g.send :[], 1, false
  g.meta_push_1
  g.meta_send_op_minus 0

  g.send :[]=, 2, false
  g.pop
end