Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

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

by jryan (Vicar)
on Dec 14, 2004 at 23:10 UTC ( #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
Node Status?
node history
Node Type: note [id://414888]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (9)
As of 2020-11-26 21:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?