implement parser for multi-line string literal (a.k.a. heredoc); syntax is borrowed from python