Help for this page

Select Code to Download


  1. or download this
    diff -Naur Template-Toolkit-2.08/parser/Grammar.pm.skel Template-Toolk
    +it-2.08-bitop/parser/Grammar.pm.skel
    --- Template-Toolkit-2.08/parser/Grammar.pm.skel        Fri Jun  7 19:
    +29:08 2002
    ...
    +       = ( @RESERVED, ('CMPOP') x @cmpop, ('BINOP') x @binop, ('BITOP
    +') x @bitop, @tokens );
     }
    
  2. or download this
    diff -Naur Template-Toolkit-2.08/parser/Parser.yp Template-Toolkit-2.0
    +8-bitop/parser/Parser.yp
    --- Template-Toolkit-2.08/parser/Parser.yp      Fri Jul 19 23:22:57 20
    +02
    ...
            |   expr '+' expr           { "$_[1] $_[2] $_[3]"             
    +    }
            |   expr DIV expr           { "int($_[1] / $_[3])"            
    +    }