From c3ba7d44b830dcf99955526f90a8944952b3bd65 Mon Sep 17 00:00:00 2001 From: Koichi Nakamura Date: Mon, 11 Jan 2021 12:50:24 +0900 Subject: [PATCH] Add shift operator to python version --- others/planck.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/others/planck.py b/others/planck.py index 176c133..bcf02b5 100644 --- a/others/planck.py +++ b/others/planck.py @@ -240,6 +240,9 @@ add_uint_operator('^', operator.xor) add_int_operator('<', operator.lt) add_uint_operator('u', operator.lt) add_uint_operator('=', operator.eq) +add_uint_operator('(', operator.lshift) +add_uint_operator(')', operator.rshift) +add_int_operator('%', operator.rshift) def argv(): push(ARGV_ADDR) push(len(sys.argv))