[svn:parrot] r43501 - in branches/pge_no_namespace_methods: compilers/tge/TGE runtime/parrot/library/PGE

tene at svn.parrot.org tene at svn.parrot.org
Wed Jan 20 07:53:45 UTC 2010


Author: tene
Date: Wed Jan 20 07:53:44 2010
New Revision: 43501
URL: https://trac.parrot.org/parrot/changeset/43501

Log:
Fix two method/ns confusions

Modified:
   branches/pge_no_namespace_methods/compilers/tge/TGE/Compiler.pir
   branches/pge_no_namespace_methods/runtime/parrot/library/PGE/Perl6Grammar.pir

Modified: branches/pge_no_namespace_methods/compilers/tge/TGE/Compiler.pir
==============================================================================
--- branches/pge_no_namespace_methods/compilers/tge/TGE/Compiler.pir	Wed Jan 20 07:52:51 2010	(r43500)
+++ branches/pge_no_namespace_methods/compilers/tge/TGE/Compiler.pir	Wed Jan 20 07:53:44 2010	(r43501)
@@ -29,7 +29,8 @@
     # Parse the source string and build a match tree
     .local pmc match
     .local pmc start_rule
-    start_rule = get_hll_global ['TGE';'Parser'], "start"
+    $P0 = get_hll_global ['TGE'], 'Parser'
+    start_rule = find_method $P0, "start"
     match = start_rule(source, 'grammar'=>'TGE::Parser')
     # Verify the parse
     unless match goto err_parse    # if parse fails, stop

Modified: branches/pge_no_namespace_methods/runtime/parrot/library/PGE/Perl6Grammar.pir
==============================================================================
--- branches/pge_no_namespace_methods/runtime/parrot/library/PGE/Perl6Grammar.pir	Wed Jan 20 07:52:51 2010	(r43500)
+++ branches/pge_no_namespace_methods/runtime/parrot/library/PGE/Perl6Grammar.pir	Wed Jan 20 07:53:44 2010	(r43501)
@@ -157,7 +157,8 @@
     match = $P0.'new'(source, 'grammar'=>'PGE::Perl6Grammar')
 
     .local pmc stmtrule
-    stmtrule = get_hll_global ['PGE';'Perl6Grammar'], 'statement'
+    $P0 = get_hll_global ['PGE'], 'Perl6Grammar'
+    stmtrule = find_method $P0, 'statement'
 
   stmt_loop:
     match = stmtrule(match)


More information about the parrot-commits mailing list