]> git.lizzy.rs Git - nothing.git/blob - src/script/scope.h
Merge pull request #319 from tsoding/gc
[nothing.git] / src / script / scope.h
1 #ifndef SCOPE_H_
2 #define SCOPE_H_
3
4 #include "expr.h"
5 #include "builtins.h"
6
7 // Scope is a stack of alists
8 // (((y . 20))
9 //  ((x . 10)
10 //   (name . "Alexey")))
11
12 struct Expr get_scope_value(struct Expr scope, struct Expr name);
13 struct Expr set_scope_value(Gc *gc, struct Expr scope, struct Expr name, struct Expr value);
14
15
16 #endif  // SCOPE_H_