aboutsummaryrefslogtreecommitdiff
path: root/include/interpreter.h
blob: 182f2e5bed38dcc75bed8775c99427562b52b2a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef INTERPRETER_H
#define INTERPRETER_H

#include "ast.h"


typedef struct Env {
  char *name;
  int val;
  struct Env *next;
} Env;

void exec_stmt(Env **env, ASTNode *node);
void env_print(Env *env);


#endif