Skip to content

Commit

Permalink
.parse needs to pass along the fully qualified name of the grammar to…
Browse files Browse the repository at this point in the history
… PGE. (.WHO should make this easier in the future, OTOH maybe PGE needs to change and take the grammar class itself, so it can handle anonymous grammars too). Either way, this resolves RT#63462.
  • Loading branch information
jnthn committed Feb 25, 2009
1 parent f9b9041 commit 59fcc4e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/classes/Grammar.pir
Expand Up @@ -42,8 +42,13 @@ Invokes the TOP rule in the grammar on the given topic.
push_eh no_TOP
TOP = find_method self, "TOP"
pop_eh
.local pmc match
$S0 = self.'WHAT'()
.local pmc match, p6meta
p6meta = get_hll_global ['Perl6Object'], '$!P6META'
$P0 = p6meta.'get_parrotclass'(self)
$P0 = inspect $P0, 'namespace'
$P0 = $P0.'get_name'()
$S0 = shift $P0
$S0 = join '::', $P0
match = TOP(topic, 'grammar' => $S0)
$P0 = getinterp
$P1 = $P0['lexpad';1]
Expand Down

0 comments on commit 59fcc4e

Please sign in to comment.