Skip to content

Instantly share code, notes, and snippets.

@igaiga
Created July 18, 2016 01:00
Show Gist options
  • Save igaiga/ef6d7518e1ba921170df6f7d83dd8d4d to your computer and use it in GitHub Desktop.
Save igaiga/ef6d7518e1ba921170df6f7d83dd8d4d to your computer and use it in GitHub Desktop.
require "ripper"
require "pp"
code = <<STR
10.times do |n|
puts n
end
puts code
STR
puts code
pp Ripper.lex(code)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment