Updated the project structure, and modified the Makefile to hopefully be future proof so I can freely make sub-folders in the src/ folder and not have to worry about breaking the Makefile.

This commit is contained in:
2022-03-16 18:07:37 +00:00
parent 6daaaae7c2
commit b3693f17df
13 changed files with 21 additions and 29 deletions
+26
View File
@@ -0,0 +1,26 @@
#ifndef INTERPRETER_H
#define INTERPRETER_H
#include "expr.h"
#include "token.h"
typedef enum {
INS_STRING,
INS_DOUBLE,
INS_BOOLEAN,
INS_NULL
} ObjectInstanceType;
typedef struct Object {
ObjectInstanceType instance;
union {
char* string;
double number;
int boolean;
} value;
} Object;
void Interpret(Expr*);
void FreeObject(Object*);
#endif