Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Parse::RecDescent and Dynamically Matched Subrule Repetition

by ikegami (Patriarch)
on Jan 11, 2006 at 17:37 UTC ( [id://522508]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
    ok($p->parse('2 foo bar'));
    ok(!$p->parse('1'));
    ok(!$p->parse('1 foo bar'));
    
  2. or download this
    my $p = Parse::RecDescent->new(<<'__END_OF_GRAMMAR__');
    
    ...
    ELEM      : /\S+/
    
    __END_OF_GRAMMAR__
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://522508]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (3)
As of 2024-04-25 17:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found