diff options
| author | Kai Stevenson <kai@kaistevenson.com> | 2023-02-14 02:02:50 -0800 |
|---|---|---|
| committer | Kai Stevenson <kai@kaistevenson.com> | 2023-02-14 02:02:50 -0800 |
| commit | 24f981233bc3e0b000acf4615d4bc6f2332eefb0 (patch) | |
| tree | b036a7d937f8444d326355cbe07eea70df693c59 /scope.h | |
init
Diffstat (limited to 'scope.h')
| -rw-r--r-- | scope.h | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -0,0 +1,13 @@ +#include "hashtable.h" +#ifndef SCOPE +#define SCOPE + +typedef struct Scope { + hashtable_t* hashtable; + struct Scope* parent; +} scope_t; +scope_t* init_scope(scope_t parent); +pair_t* get_pair_global(char* key, scope_t* scope); +pair_t* get_pair_local(char* key, scope_t* scope); + +#endif |
