Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Parsing EBNF with Perl 5 to eventually parse XML with Perl 6

by Matts (Deacon)
on Jul 08, 2002 at 11:25 UTC ( #180142=note: print w/replies, xml ) Need Help??


in reply to Parsing EBNF with Perl 5 to eventually parse XML with Perl 6

Very interesting.

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.

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.

  • Comment on Re: Parsing EBNF with Perl 5 to eventually parse XML with Perl 6

Replies are listed 'Best First'.
Re^2: Parsing EBNF with Perl 5 to eventually parse XML with Perl 6
by audreyt (Hermit) on May 23, 2005 at 19:41 UTC
    Well, doubt no more, PGE has them implemented (as part of Parrot), and you can run them with Pugs today. :-)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://180142]
help
Chatterbox?
[Corion]: Hmmm. Maybe setting $ENV{PERL5LIB}=" some path without dot"; perl Makefile.PL; make test already is enough to locally test your module...
[Corion]: Meh, no, will need a BEGIN hook...
[Corion]: ... and PERL5OPT does not like -e in it :-(
[Corion]: Ah. The magic invocation is set PERL5OPT=-M-lib=. (equivalent of no lib '.';
[Corion]: )

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (9)
As of 2017-03-27 08:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (317 votes). Check out past polls.