forked from ground/cground
19 lines
390 B
C
19 lines
390 B
C
|
|
#ifndef INTERPRETER_H
|
||
|
|
#define INTERPRETER_H
|
||
|
|
|
||
|
|
#include "types.h"
|
||
|
|
#include "parser.h"
|
||
|
|
#include "include/uthash.h"
|
||
|
|
|
||
|
|
typedef enum GroundRuntimeError {
|
||
|
|
ARG_TYPE_MISMATCH, TOO_FEW_ARGS, TOO_MANY_ARGS, FIXME
|
||
|
|
} GroundRuntimeError;
|
||
|
|
|
||
|
|
typedef struct GroundLabel {
|
||
|
|
|
||
|
|
} GroundLabel;
|
||
|
|
|
||
|
|
void interpretGroundProgram(GroundProgram* in);
|
||
|
|
void interpretGroundInstruction(GroundInstruction* in);
|
||
|
|
#endif
|