mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 05:58:20 +00:00
ZAM support for bit-shifting
This commit is contained in:
parent
99e265bf87
commit
f535a7c3a7
1 changed files with 13 additions and 0 deletions
|
@ -543,6 +543,19 @@ op-type U
|
|||
vector
|
||||
eval $1 ^ $2
|
||||
|
||||
binary-expr-op Lshift
|
||||
op-type I U
|
||||
vector
|
||||
eval-type I if ( $1 < 0 )
|
||||
ZAM_run_time_error(z.loc, "left shifting a negative number is undefined");
|
||||
$$ = $1 << $2;
|
||||
eval $1 << $2
|
||||
|
||||
binary-expr-op Rshift
|
||||
op-type I U
|
||||
vector
|
||||
eval $1 >> $2
|
||||
|
||||
########## Relationals ##########
|
||||
|
||||
rel-expr-op LT
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue