Skip to content

Instantly share code, notes, and snippets.

@louismrose
Created March 18, 2014 16:36
Show Gist options
  • Save louismrose/9623882 to your computer and use it in GitHub Desktop.
Save louismrose/9623882 to your computer and use it in GitHub Desktop.
Files to reproduce mbj/unparser issue #26
ruby '2.1.1'
source "https://rubygems.org"
gem "parser", "~> 2.1.4"
gem "unparser", "~> 0.1.9"
#!/usr/bin/env ruby
# Run me with bundle exec ./issue26.rb
require "parser/current"
require "unparser"
ast = Parser::CurrentRuby.parse("a and b")
p Unparser.unparse(ast)
p ast
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment