Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Parsing BNF syntax diagrams..

by castaway (Parson)
on Aug 20, 2004 at 13:17 UTC ( #384588=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    >>-ACTIVATE--+-DATABASE-+--database-alias----------------------->
                 '-DB-------'
    ...
    >--+-------------------------------------+---------------------><
       '-USER--username--+-----------------+-'
                         '-USING--password-'
    
  2. or download this
    >>-select-clause--from-clause--+--------------+----------------->
                                   '-where-clause-'
    
    >--+-----------------+--+---------------+----------------------><
       '-group-by-clause-'  '-having-clause-'
    
  3. or download this
               .-ALL------.
    >>-SELECT--+----------+----------------------------------------->
    ...
           |             | .-AS-.                  | |
           |             '-+----+--new-column-name-' |
           '-exposed-name.*--------------------------'
    
  4. or download this
    rule1: 'ACTIVATE' ('DATABASE' | 'DB') database-alias ('' | 'USER' user
    +name ( '' | 'USING' password ) )
    rule2: select-clause from-clause ('' | where-clause) ('' | group-by-cl
    +ause) ('' | having-clause)
    rule3: 'SELECT' ('ALL' | '' | 'DISTINCT') ( '*' | ( expression ( '' | 
    +( ('' | 'AS' ) new-column-name ) ) | exposed-name '.*' )(/,/ *) )
    
  5. or download this
    rule2: select-clause from-clause where-clause(?) group-by-clause(?) ha
    +ving-clause(?)
    ..
    
  6. or download this
    #!/usr/bin/perl
    use warnings;
    ...
    # print "Mainline: $mainline\n";
    
    print line2rule($mainline, 0, 0+@{$info[$mainline]}, \@info), "\n";
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://384588]
Approved by Corion
Front-paged by roju
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2019-08-23 15:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?