<?xml version="1.0" encoding="windows-1252"?>
<node id="716634" title="Re^6: Generate the perl..- Running STD.pm" created="2008-10-11 14:46:26" updated="2008-10-11 14:46:26">
<type id="11">
note</type>
<author id="616540">
moritz</author>
<data>
<field name="doctext">
&lt;p&gt;Sorry to the OP for going so far off-topic...

&lt;p&gt;You need to grab a copy of the pugs repository. In that repo you'll find the directory &lt;c&gt;src/perl6/&lt;/c&gt;, in which you can find &lt;c&gt;STD.pm&lt;/c&gt; and &lt;c&gt;STD5_dump_match&lt;/c&gt;.

&lt;p&gt;(If you take somebody else's checkout of the pugs repository please copy the &lt;c&gt;perl6/&lt;/c&gt; folder to your home directory, because you need write accessing for the lex cache).

&lt;p&gt;In that dir, type &lt;c&gt;make&lt;/c&gt;, then you can use &lt;c&gt;perl STD5_dump_match $file&lt;/c&gt; to print out a match tree.

&lt;p&gt;(You need a perl 5.10.0 in /usr/local/perl to run this, along with a few modules like [mod://re::engine::TRE], [mod://JSON::XS] and [mod://Moose]. I'll try to install all the dependencies on feather now.)</field>
<field name="root_node">
716367</field>
<field name="parent_node">
716630</field>
</data>
</node>
