Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: Left-associative binary operators in Parse::RecDescent

by jryan (Vicar)
on Dec 14, 2004 at 23:10 UTC ( [id://414888]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    logical_expr : comparison_expr logical_op logical_expr 
                 | comparison_expr
    
  2. or download this
    logical_expr : comparison_expr mult_logical_expr(s?)
    mult_logical_expr: logical_op comparison_expr
    ...
    # or:
    
    logical_expr : comparison_expr (logical_op comparison_expr)(s?)
    
  3. or download this
    logical_expr : comparison_expr
                   (logical_op comparison_expr { [ \@item[1..2] ] })(s?)
    ...
    math_expr : paren_expr
                (math_op paren_expr { [ \@item[1..2] ] })(s?)
                { [  \$item[1], map { \@ \$_ } \@{\$item[2]} ] }
    
  4. or download this
    $::RD_AUTOACTION = q { bless [@item[1..$#item]], "$item[0]_node" };
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (6)
As of 2024-03-29 13:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found