From: Robert Feldt Date: 2001-10-25T07:33:24+09:00 Subject: [ruby-talk:23237] Parsing Ruby's interpolated strings/regexps Hi, What would you expect a Ruby parser to return after parsing an interpolated string or regexp like for example /a#{b+1}c/ ? Matz Ruby interpreter currently parses this into Newline(Dregx("a" Array(Evstr("b+1") 1 Array(Str("c") 1 nil)))) and then recursively parses the Evstr "b+1" when in evaluation of the program with the regexp. But if you have a separate parser (ie. not bound to a special interpreter) would you expect the "b+1" string to have been parsed in the Abstract Syntax Tree you get back? Thanks, Robert