20 lines
357 B
C
20 lines
357 B
C
#ifndef INTERPRETER_H
|
|
#define INTERPRETER_H
|
|
|
|
#include "expr.h"
|
|
#include "token.h"
|
|
|
|
typedef struct Object {
|
|
TokenType instance;
|
|
union {
|
|
char* string;
|
|
double number;
|
|
int boolean;
|
|
} value;
|
|
} Object;
|
|
|
|
const void* VisitLiteralExpression(Expr*);
|
|
void* VisitGroupingExpression(Expr*);
|
|
void* VisitBinaryExpression(Expr*);
|
|
|
|
#endif |