mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 14:54:07 +10:00
21 lines
238 B
C
21 lines
238 B
C
#pragma once
|
|
|
|
typedef enum Opcode {
|
|
OP_EOF,
|
|
|
|
//basic operations
|
|
OP_PRINT,
|
|
|
|
//data
|
|
OP_LITERAL,
|
|
OP_LITERAL_LONG, //for more than 256 literals in a chunk
|
|
|
|
//operators
|
|
OP_NEGATE,
|
|
|
|
//meta
|
|
OP_SECTION_END,
|
|
//TODO: add more
|
|
} Opcode;
|
|
|