Help for this page

Select Code to Download


  1. or download this
    ## for right-associative ops:
    lower_prec_expr : higher_prec_expr lower_prec_op lower_prec_expr
    ...
    lower_prec_expr : lower_prec_expr lower_prec_op higher_prec_expr
                    | higher_prec expr
    
  2. or download this
    use Parse::RecDescent;
    use Data::Dumper;
    ...
    foo == bar || baz < bar
    foo == bar || baz < bar || foo && bar
    (foo || bar) || baz