Skip to content

Instantly share code, notes, and snippets.

@NathanielWroblewski
Created February 10, 2014 02:33
Show Gist options
  • Select an option

  • Save NathanielWroblewski/8909408 to your computer and use it in GitHub Desktop.

Select an option

Save NathanielWroblewski/8909408 to your computer and use it in GitHub Desktop.
Cool look into ruby's Ripper
require 'ripper'
require 'pp'
code = <<STR
10.times do |n|
puts n end
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