New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Foo::_foo() parsefails #950
Comments
From @japhbRakudo doesn't parse Foo::_foo() properly, while Foo::foo() works fine. Before patch: $ ./perl6 -e 'module Foo { sub _foo { say "foo" } }; Foo::_foo()' current instr.: 'parrot;PGE;Util;die' pc 129 (runtime/parrot/library/PGE/Util.pir:85) After patch: $ ./perl6 -e 'module Foo { sub _foo { say "foo" } }; Foo::_foo()' The patch is trivial: Inline Patchdiff --git a/src/parser/grammar.pg b/src/parser/grammar.pg
index 50b95e7..9c0b5b2 100644
--- a/src/parser/grammar.pg
+++ b/src/parser/grammar.pg
@@ -815,7 +815,7 @@ token name {
token morename {
'::'
[
- <?before '(' | <alpha> >
+ <?before '(' | <ident> >
[
| <identifier>
| '(' <EXPR> ')'
-'f |
From @moritzOn Sat Apr 25 16:33:44 2009, japhb wrote:
In STD.pm the token alpha is define is <ident> \w* - so maybe even Cheers, |
The RT System itself - Status changed from 'new' to 'open' |
From @pmichaudOn Sat, Apr 25, 2009 at 04:33:44PM -0700, Geoffrey Broadwell wrote:
While the patch appears to solve the issue, it also deviates from STD.pm appears to parse the above okay, though, so we need to Patch rejected (for now), but we'll leave the ticket open until Thanks! Pm |
From @pmichaudOn Mon, Apr 27, 2009 at 08:31:38AM -0500, Patrick R. Michaud wrote:
Answered on #perl6: So, we need to patch PGE so that <alpha> matches underscore, and Pm |
From @cokeOn Mon, Apr 27, 2009 at 12:26 PM, Patrick R. Michaud <pmichaud@pobox.com> wrote:
Created TT #585 for parrot to track this issue. -- |
From @pmichaudNow fixed in f93154a. We need to verify there's a spectest for this particular Assigning to moritz++ for test updates. Thanks! Pm |
1 similar comment
From @pmichaudNow fixed in f93154a. We need to verify there's a spectest for this particular Assigning to moritz++ for test updates. Thanks! Pm |
From @moritzTest added to t/spec/S02-names_and_variables/names.t Cheers, |
@moritz - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#65138 (status was 'resolved')
Searchable as RT65138$
The text was updated successfully, but these errors were encountered: