18 lines
454 B
C
18 lines
454 B
C
#ifndef CCM_BYTECODE_H
|
|
#define CCM_BYTECODE_H
|
|
|
|
#include "commons.h"
|
|
|
|
#define OPCODES(G) \
|
|
G(OP_PUSH), G(OP_POP), \
|
|
G(OP_ADD), G(OP_SUB), G(OP_USUB), G(OP_MUL), \
|
|
G(OP_DIV), G(OP_POW), G(OP_MOD), G(OP_MK_TUPLE), \
|
|
G(OP_ASSERT_EQ), G(OP_ASSERT_NE), G(OP_BRF), G(OP_BR), \
|
|
G(OP_NOT), G(OP_IN), G(OP_INDEX), G(OP_EQ), G(OP_LT), \
|
|
G(OP_GT), G(OP_MK_ARRAY), G(OP_LOCAL_STORE), \
|
|
G(OP_LOCAL_LOAD), G(OP_ASTORE), G(OP_LEN)
|
|
|
|
CCM_ENUM_H(Opcode, OPCODES);
|
|
|
|
#endif
|