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

Re: Parse::RecDescent: how does <matchrule:> work?

by 7stud (Deacon)
on Feb 07, 2013 at 16:58 UTC ( #1017698=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $parser = Parse::RecDescent->new($grammar) 
        or die "Bad grammar!\n";
    
    defined $parser->startrule($text) 
        or die "Can't match text";
    
  2. or download this
        startrule:  brace_block(s)    #adjustment
    
    ...
    
        lbrace:  / [{] /xms
        rbrace: / [}] /xms
    
  3. or download this
        startrule: <rulevar: $rbraces>
    
    ...
                   
    
        lbrace: / [{] /xms
    
  4. or download this
    Can't use string ("{{") as an ARRAY ref while "strict refs" in use at 
    +(eval 14) line 377
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2014-07-25 23:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (175 votes), past polls