Closed presidentbeef closed 1 month ago
RubyParser combines adjacent strings into a single :dstr. (RubyParser pretty much avoids nested :dstrs as much as possible.)
:dstr
> RubyParser.new.parse('"#{1}" " "') => s(:dstr, "", s(:evstr, s(:lit, 1)), s(:str, " ")) > Prism::Translation::RubyParser.parse('"#{1}" " "') => s(:dstr, "", s(:dstr, "", s(:evstr, s(:lit, 1))), s(:str, " "))
(Prism 0.29)
RubyParser combines adjacent strings into a single
:dstr
. (RubyParser pretty much avoids nested:dstr
s as much as possible.)(Prism 0.29)