Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

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

by Juerd (Abbot)
on Jul 05, 2002 at 22:20 UTC ( #179755=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
    rule xml :i {
  2. or download this
    document ::=    prolog element Misc*
    Char     ::=    #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#
    S        ::=    (#x20 | #x9 | #xD | #xA)+
    etcetera, etcetera
  3. or download this
    rule document { <prolog> <element> <Misc>* }
    rule Char     { <[\x9\xA\xD\x20-\xD7FF\xE000\xFFFD\x10000-\x10FFFF]> }
    rule Nmtoken  { <NameChar>+ }
    rule Nmtokens { <Nmtoken> [<S> <Nmtoken>]* }
    etcetera, etcetera
  4. or download this
    #!/usr/bin/perl -w
        print "\n}\n\n";
  5. or download this
    rule document {
        <prolog> <element> <Misc>*
        # Large block manually removed.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlmeditation [id://179755]
Approved by FoxtrotUniform
Front-paged by cjf
[Discipulus]: I havery limited needs in such field. Sometimes (for children party invitations) i draw something by hand and I scan it to include into an ms doc.
Discipulus havery can be a good neologism for: have very..;=)
[ambrus]: Discipulus: sure, it's just that, look, some people (including me) have such unreadable and slow handwriting that writing an article or slides by hand would be a very bad idea.
[choroba]: it might bery useful for other verbs, too
[ambrus]: (and I have a need for at least decent formatting too)

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (9)
As of 2017-09-26 11:28 GMT
Find Nodes?
    Voting Booth?
    During the recent solar eclipse, I:

    Results (293 votes). Check out past polls.