This is *great* and I've already started converting partcl to take
advantage.
One problem I've discovered:
operators["<<"] = OPERATOR_SHL
This is probably because:
<*>"<<"{STRINGCONSTANT} {
Is too permissive. Can we perhaps just allow {ID}s ?
Thanks again! This is great! Woo!
On Oct 4, 2005, at 6:03 PM, Jonathan Worthington via RT wrote:
Hi,
After a show of demand for here docs on IRC (and leo's approval), I've
now modified to lexer to support them. The syntax for introducing a
heredoc is <<"XXX", and it ends on the line containing (only) XXX. For
example:-
$ cat example.pir
.sub _main
$S0 = <<"quotage"
Blah blah
Oh happy days...
I love my pink highlighter pen...
quotage
print $S0
.end
$ parrot example.pir
Blah blah
Oh happy days...
I love my pink highlighter pen...
$
Have fun,
Jonathan