forked from ground/cground
Start work on interpreter
This commit is contained in:
18
src/interpreter.h
Normal file
18
src/interpreter.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user