Archived
1
0
Fork 0
This repository has been archived on 2023-11-10. You can view files and clone it, but cannot push or open issues or pull requests.
SLOTH/src/variables/environment.hpp
2018-09-26 19:28:55 -04:00

17 lines
419 B
C++

#ifndef ENVIRONMENT_H
#define ENVIRONMENT_H
#define MAX_VARIABLES 200
struct Environment {
int num_vars;
struct Variable* vars[MAX_VARIABLES];
};
// Variable Lookup Functions
struct Environment* create_environment(void);
void delete_environment(struct Environment* env);
struct Variable* find_variable(struct Environment* env, char* id);
void add_variable(struct Environment* env, struct Variable* var);
#endif