<?xml version="1.0" encoding="windows-1252"?>
<node id="180142" title="Re: Parsing EBNF with Perl 5 to eventually parse XML with Perl 6" created="2002-07-08 07:25:58" updated="2005-05-23 12:26:39">
<type id="11">
note</type>
<author id="126229">
Matts</author>
<data>
<field name="doctext">
Very interesting.
&lt;p&gt;
The only thing to watch out for is that XML can't be parsed using the grammar alone. The comments in the text of the spec are normative, not the grammar. If that wasn't the case I would have used one of the grammar generators (like Parse::YAPP, which can produce a standalone grammar) for XML::SAX::PurePerl.
&lt;p&gt;
Still, good effort. If perl 6 ever gets these regexps actually implemented (I have my doubts about that) then it's certainly going to be interesting writing parsers.</field>
<field name="root_node">
179755</field>
<field name="parent_node">
179755</field>
</data>
</node>
