develooper Front page | perl.perl6.compiler | Postings from January 2011

[perl #65474] Null PMC access when calling a regex in a derived grammar in Rakudo

Thread Next
From:
Will Coleda via RT
Date:
January 30, 2011 22:08
Subject:
[perl #65474] Null PMC access when calling a regex in a derived grammar in Rakudo
Message ID:
rt-3.6.HEAD-20807-1296454110-45.65474-15-0@perl.org
On Thu May 07 07:44:31 2009, masak wrote:
> <masak> I'm trying to understand what
> http://rt.perl.org/rt3/Ticket/Display.html?id=57864 needs to be
> closed.
> <masak> in it, pm says 'inheritance and method dispatch don't seem to
> be working quite properly, and we'll need to get that fixed'.
> <moritz_> there's just one thing that doesn't work in inheritance
> <moritz_> and there's a separate ticket for that
> <masak> so I can go ahead and close? which other ticket?
> <moritz_> rakudo: grammar A { token a { a } }; grammar B is A { }; say
> 'a' ~~ /<B::a>/
> <p6eval> rakudo 615936: OUTPUT«Null PMC access in invoke() [...]
> <moritz_> this one
> <moritz_> don't know what ticket it is, though
> <masak> moritz_: are you sure that one's in RT? my searches for
> 'grammar' and 'inherit' turn up nada.
> <moritz_> masak: nearly sure
> <masak> moritz_: nope. really not finding it.
> * masak submits, just to be sure
> <moritz_> masak: ok

The error here has changed:

01:07 <[Coke]> rakudo: grammar A { token a { a } }; grammar B is A { }; say 'a' 
               ~~ /<B::a>/
01:07 <p6eval> rakudo 549d2a: OUTPUT«===SORRY!===␤regex assertion not 
               terminated by angle bracket at line 22, near "::a>/"␤»


-- 
Will "Coke" Coleda

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About