diff -Naur Template-Toolkit-2.08/parser/Parser.yp Template-Toolkit-2.08-bitop/parser/Parser.yp --- Template-Toolkit-2.08/parser/Parser.yp Fri Jul 19 23:22:57 2002 +++ Template-Toolkit-2.08-bitop/parser/Parser.yp Wed Nov 27 21:34:19 2002 @@ -50,6 +50,7 @@ %left DOT %left CMPOP %left BINOP +%left BITOP %left '+' %left '/' %left DIV @@ -358,6 +359,7 @@ ; expr: expr BINOP expr { "$_[1] $_[2] $_[3]" } + | expr BITOP expr { "$_[1] $_[2] $_[3]" } | expr '/' expr { "$_[1] $_[2] $_[3]" } | expr '+' expr { "$_[1] $_[2] $_[3]" } | expr DIV expr { "int($_[1] / $_[3])" }