Created
March 18, 2014 16:36
-
-
Save louismrose/9623882 to your computer and use it in GitHub Desktop.
Files to reproduce mbj/unparser issue #26
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ruby '2.1.1' | |
source "https://rubygems.org" | |
gem "parser", "~> 2.1.4" | |
gem "unparser", "~> 0.1.9" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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