# coding: utf-8 # flake8: noqa: E501 OP_REQSIZE = [0, 0, 2, 2, 2, 2, 1, 0, 1, 0, 1, 0, 2, 0, 1, 0, 2, 2, 0, 1, 1, 0, 0, 2, 1, 0] OP_STACKDEL = [0, 0, 2, 2, 2, 2, 1, 0, 1, 0, 1, 0, 2, 0, 1, 0, 2, 2, 0, 1, 1, 0, 0, 0, 0, 0] OP_STACKADD = [0, 0, 1, 1, 1, 1, 0, 1, 2, 0, 0, 0, 1, 0, 0, 0, 1, 2, 0, 0, 0, 1, 1, 0, 0, 0] # 㱠㲠㴠㷠㸠㹠ã ã ã ã ã ã ã ã ã ã ã ã ã ln lc pn pc b2 b1 j VAL_QUEUE = 21 VAL_PORT = 27 STORAGE_COUNT = 28 # ã± # ã² OP_DIV = 2 # ã´ OP_ADD = 3 # ã· OP_MUL = 4 # 㸠OP_MOD = 5 # ã¹ OP_POP = 6 # ã OP_PUSH = 7 # ã OP_DUP = 8 # ã OP_SEL = 9 # ã OP_MOV = 10 # ã OP_NONE = 11 # ã OP_CMP = 12 # ã # ã OP_BRZ = 14 # ã OP_SUB = 16 # ã OP_SWAP = 17 # ã OP_HALT = 18 # ã # end of primitive OP_POPNUM = 19 OP_POPCHAR = 20 OP_PUSHNUM = 21 OP_PUSHCHAR = 22 OP_BRPOP2 = -3 # special OP_BRPOP1 = -2 # special OP_JMP = -1 # special OP_BRANCHES = [OP_BRZ, OP_BRPOP1, OP_BRPOP2] OP_JUMPS = OP_BRANCHES + [OP_JMP] OP_BINARYOPS = [OP_DIV, OP_ADD, OP_MUL, OP_MOD, OP_CMP, OP_SUB]