Re: [PATCH] suggestion for the file grammar.pg

2008-07-04 Thread Patrick R. Michaud
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 { [ |'.'

Re: [PATCH] suggestion for the file grammar.pg

2008-07-04 Thread Gerd Pokorra
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 second

[PATCH] suggestion for the file grammar.pg

2008-07-03 Thread Gerd Pokorra
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

Re: [PATCH] suggestion for the file grammar.pg

2008-07-03 Thread Moritz Lenz
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 which

Re: [PATCH] suggestion for the file grammar.pg

2008-07-03 Thread Patrick R. Michaud
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. But does the