mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 07:38:19 +00:00
Add bitshift operators
This commit is contained in:
parent
1d2c12e980
commit
f2bfa61fc6
10 changed files with 57 additions and 4 deletions
|
@ -89,6 +89,10 @@ string CPPCompile::GenExpr(const Expr* e, GenType gt, bool top_level)
|
|||
return GenBinary(e, gt, "|", "or");
|
||||
case EXPR_XOR:
|
||||
return GenBinary(e, gt, "^", "xor");
|
||||
case EXPR_LSHIFT:
|
||||
return GenBinary(e, gt, "<<", "lshift");
|
||||
case EXPR_RSHIFT:
|
||||
return GenBinary(e, gt, ">>", "rshift");
|
||||
case EXPR_AND_AND:
|
||||
return GenBinary(e, gt, "&&", "andand");
|
||||
case EXPR_OR_OR:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue