Skip to content

Instantly share code, notes, and snippets.

@olivernn olivernn/output
Created Oct 21, 2016

What would you like to do?
RubyWat Implicit String Concatenation
[[:string_literal, [:string_content, [:@tstring_content, "abc", [1, 1]]]]]]
'a' 'b' 'c'
[:string_literal, [:string_content, [:@tstring_content, "a", [1, 1]]]],
[:string_literal, [:string_content, [:@tstring_content, "b", [1, 5]]]]],
[:string_literal, [:string_content, [:@tstring_content, "c", [1, 9]]]]]]]
require 'ripper'
require 'pp'
puts "'abc'"
pp Ripper.sexp("'abc'")
puts "\n'a' 'b' 'c'"
pp Ripper.sexp("'a' 'b' 'c'")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.