module php/pp/common/literals/heredocLiterals rules // For now very straightforward. php-to-box : HereDoc(open,parts,s) -> H([SOpt(HS(), "0")], [ open | [ str | [ S(s) ] ] ])
H hs=0 [ ~open ~str ] where <lit-of-esc-to-string> parts => str php-to-box : HereDocStart(s) -> H([SOpt(HS(), "0")], [ S("<<<") | [ S(s) ] ])
H hs=0 ["<<<" ]