John M. Dlugosz wrote:
> Does that mean there is a tool I can use to apply STD.pm to syntax-check
> my examples or ask questions of it? Can you point to that?
in the pugs repository:
$ cd src/perl6
$ make
$ ./tryfile $filename
That assumes a perl 5.10 in /usr/local/bin/perl
HTH,
Moritz
--
Mo
Does that mean there is a tool I can use to apply STD.pm to syntax-check
my examples or ask questions of it? Can you point to that?
--John
Moritz Lenz wrote:
Since now STD.pm parses most Perl 6 code now, and spits out a parse tree
in YAML, a brave soul might want to write a syntax hilighter
It seems to me that the only type held by a '&' variable is treated as
the container type. And, the value type in such a declaration is
uniformly used as a function return type. Is that correct?
So if the most basic declaration is
my &func;
then
my Int &func;
means that whatever fun
Hi,
I found in one of the spec tests for Ranges:
my $r = 1..5;
ok(($r).ACCEPTS($r), 'accepts self');
ok(($r).ACCEPTS(1..5), 'accepts same');
ok($r ~~ $r, 'accepts self');
ok($r ~~ 1..5, 'accepts same');
And implemented this, but then Pm pointed out that it's not actually
mention