vm/codegen/instructions_gen.rb
# Using an array of Implementation objects, +methods+, print one function
# per object into +io+.
#
Using an array of Implementation objects, +methods+, print one function
per object into +io+.
Using an array of Implementation objects + methods + print one function per object into + io + .
def generate_functions(methods, io)
    methods.each do |impl|
      io.puts "#{impl.signature} {"
      io.puts impl.body
      io.puts "return stack_top();"
      io.puts "}"
    end
  end
def generate_functions ( methods , io ) methods . each do | impl | io . puts "#{impl.signature} {" io . puts impl . body io . puts "return stack_top();" io . puts "}" end end
Using an array of Implementation objects, +methods+, print one function
per object into +io+.
Using an array of Implementation objects + methods + print one function per object into + io + .
methods
<not_specific>
io
<not_specific>