require 'ripper'
require 'pp'
code = <<STR
10.times do |n|
puts n
end
STR
puts code
pp Ripper.lex(code)
require 'ripper'
require 'pp'
code = <<STR
10.times do |n|
puts n
end
STR
puts code
pp Ripper.sexp(code)
code = <<END
10.times do |n|
puts n
end
END
puts RubyVM::InstructionSequence.compile(code).disasm
https://docs.google.com/forms/d/e/1FAIpQLSfU2z6QJZ3buubBW-zbTJnqtu8-rTkvykoze-3pTEYW_CgsLw/viewform