I'm working on a grammar in Perl 6 to parse Java.  I followed the synopsis to 
get this:

my $parse_tree; given $raw_method {
       $parse_tree = m:keepall/<JavaParser.method_decl/;
   }

where method_decl is the top rule in the grammar (for now).  When I ask it to say 
$parse_tree, pugs prints <Regex>.  That seems very good to me.

Can someone point me to the docs or code where I can find out how to use that 
Regex object (or to the proper list or channel in which to ask)?  I'm hoping 
the regex is going to contained my named captures.

Thanks,

Phil

Reply via email to