Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Parse::RecDescent and Dynamically Matched Subrule Repetition

by ikegami (Pope)
on Jan 11, 2006 at 17:37 UTC ( #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
Node Status?
node history
Node Type: note [id://522508]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2020-02-22 07:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?










    Results (98 votes). Check out past polls.

    Notices?