Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Bitwise Operations for Template Toolkit

by rob_au (Abbot)
on Dec 01, 2002 at 09:33 UTC ( [id://216745]=sourcecode: print w/replies, xml ) Need Help??

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])"            
    +    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2024-04-24 14:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found