start working on text representation and constants
This commit is contained in:
@@ -5,13 +5,19 @@
|
||||
#include <stddef.h>
|
||||
|
||||
typedef enum {
|
||||
GravityOpcodeAdd = 0
|
||||
GravityOpcodeAlloc = 0,
|
||||
GravityOpcodeStore,
|
||||
GravityOpcodeLoad
|
||||
} GravityOpcode;
|
||||
|
||||
typedef struct {
|
||||
GravityOpcode opcode;
|
||||
GravityValue* operands;
|
||||
size_t numOperands;
|
||||
GravityValue result;
|
||||
} GravityInstruction;
|
||||
|
||||
char* gravityInstructionToCStr(GravityInstruction inst);
|
||||
char* gravityOpcodeToCStr(GravityOpcode opcode);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user