Hello,
I suggest the little attached patch (diff -u) for the file
"languages/perl6/src/parser/grammar.pg", so that the following code
my $a = .2;
will also be accepted from Rakudo.
Gerd Pokorra
patch.tar
Description: Unix tar archive
Hi,
Gerd Pokorra wrote:
> I suggest the little attached patch (diff -u) for the file
> "languages/perl6/src/parser/grammar.pg", so that the following code
>
> my $a = .2;
>
> will also be accepted from Rakudo.
But does the language specification allow it? I don't think so, and
STD.pm (after whi
On Fri, Jul 04, 2008 at 12:15:24AM +0200, Moritz Lenz wrote:
> Hi,
>
> Gerd Pokorra wrote:
> > I suggest the little attached patch (diff -u) for the file
> > "languages/perl6/src/parser/grammar.pg", so that the following code
> >
> > my $a = .2;
> >
> > will also be accepted from Rakudo.
>
> Bu
STD.pm was updated to handle leading dot in Num constants, thus
we now have (in both rakudo's grammar and STD.pm):
token escale {
<[Ee]> <[+\-]>? \d+
}
# careful to distinguish from both integer and 42.method
token dec_number {
[
|'.' \d+[_\
Hello,
here same output:
First a test with pugs Version: 6.2.13 (r17105) which use STD.pm
[EMAIL PROTECTED] ~]$ pugs -e 'my $a=.2; say $a'
0.2
[EMAIL PROTECTED] ~]$ pugs -e 'my $a=E+3'
*** No such subroutine: "&E"
at -e line 1, column 3 - line 2, column 1
[EMAIL PROTECTED] ~]$
The secon