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
Rakudo doesn't recognize grammars with :: in the name #389
Comments
From @masak<masak> rakudo: grammar A { token foo { foo } }; say "foo" ~~ A::foo |
From @chrisdolanOn Wed Nov 05 13:43:54 2008, masak wrote:
The problem is more evident in PIR. The grammar reduces to something .namespace ["PDF::Grammar"] instead of this: .namespace ["PDF";"Grammar"] I think the fault is in languages/perl6/src/parser/actions.pm method regex_declarator_rule($/) { (as well as regex_declarator_regex and regex_declarator_token). If |
The RT System itself - Status changed from 'new' to 'open' |
From @chrisdolanIt took a while to understand the code, but the solution was a |
From @chrisdolanRT#60358.patchIndex: src/parser/actions.pm
===================================================================
--- src/parser/actions.pm (revision 32369)
+++ src/parser/actions.pm (working copy)
@@ -2544,7 +2544,7 @@
$past := PAST::Block.new(
$<quote_regex>,
:compiler('PGE::Perl6Regex'),
- :namespace($?NS),
+ :namespace(Perl6::Compiler.parse_name( $?NS )),
:blocktype('declaration'),
:node( $/ )
);
|
From @jnthnOn Wed Nov 05 19:31:36 2008, chrisdolan wrote:
Thanks! Jonathan |
@jnthn - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#60358 (status was 'resolved')
Searchable as RT60358$
The text was updated successfully, but these errors were encountered: