[svn:parrot] r43536 - branches/tt389_fix/compilers/pge/PGE
chromatic at svn.parrot.org
chromatic at svn.parrot.org
Fri Jan 22 09:30:24 UTC 2010
Author: chromatic
Date: Fri Jan 22 09:30:24 2010
New Revision: 43536
URL: https://trac.parrot.org/parrot/changeset/43536
Log:
[PGE] Modified PGE::Exp to look up rules in the current grammar from the
appropriate class, not the attached namespace directly. This is not efficient,
but it works.
Modified:
branches/tt389_fix/compilers/pge/PGE/Exp.pir
Modified: branches/tt389_fix/compilers/pge/PGE/Exp.pir
==============================================================================
--- branches/tt389_fix/compilers/pge/PGE/Exp.pir Fri Jan 22 08:41:36 2010 (r43535)
+++ branches/tt389_fix/compilers/pge/PGE/Exp.pir Fri Jan 22 09:30:24 2010 (r43536)
@@ -862,6 +862,10 @@
$P0 = find_method mob, '%0'
goto %L_2
%L_1:
+ $P0 = get_namespace
+ $P0 = get_class $P0
+ $P0 = $P0.'find_method'('%0')
+ unless null $P0 goto %L_2
$P0 = find_name '%0'
unless null $P0 goto %L_2
die "Unable to find regex '%0'"
More information about the parrot-commits
mailing list