Author: kjs Date: Thu Mar 22 02:24:25 2007 New Revision: 17689 Modified: trunk/docs/imcc/syntax.pod
Log: Found about some syntax that IMCC eats: * .return (<<'HI') and * .yield (<<'HI') Modified: trunk/docs/imcc/syntax.pod ============================================================================== --- trunk/docs/imcc/syntax.pod (original) +++ trunk/docs/imcc/syntax.pod Thu Mar 22 02:24:25 2007 @@ -94,14 +94,26 @@ the terminating delimiter is slurped into the string. The delimiter has to be on its own line with no trailing whitespace. +Assignment of a heredoc: + $S0 = <<'EOT' ... EOT +A heredoc as an argument: + function(<<"END_OF_HERE", arg) ... END_OF_HERE + .return(<<'EOS') + ... + EOS + + .yield(<<'EOS') + ... + EOS + Only one heredoc can be active per statement line. =item charset:"string constant" @@ -345,7 +357,7 @@ =item .return ([<var> [:<flag> ...], ...]) -Return from the current compilation unit with zero or more values. +Return from the current compilation unit with zero or more values. The surrounded parentheses are mandatory. Besides making sequence break more conspicuous, this is necessary to distinguish this syntax
