module YARP::LexCompat::Heredoc

def self.build(opening)

object that will store their tokens.
Here we will split between the two types of heredocs and return the
def self.build(opening)
  case opening.value[2]
  when "~"
    DedentingHeredoc.new
  when "-"
    DashHeredoc.new(opening.value[3] != "'")
  else
    PlainHeredoc.new
  end
end