LispBM
env.h
Go to the documentation of this file.
1 
2 /*
3  Copyright 2018 Joel Svensson svenssonjoel@yahoo.se
4 
5  This program is free software: you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation, either version 3 of the License, or
8  (at your option) any later version.
9 
10  This program is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18 
19 #ifndef ENV_H_
20 #define ENV_H_
21 
22 #include "lbm_types.h"
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
28 #define GLOBAL_ENV_ROOTS 32
29 #define GLOBAL_ENV_MASK 0x1F
30 
31 //environment interface
36 int lbm_init_env(void);
56 bool lbm_env_lookup_b(lbm_value *res, lbm_value sym, lbm_value env);
103 
104 #ifdef __cplusplus
105 }
106 #endif
107 #endif
lbm_get_global_env
lbm_value * lbm_get_global_env(void)
Definition: env.c:36
lbm_env_set
lbm_value lbm_env_set(lbm_value env, lbm_value key, lbm_value val)
Definition: env.c:108
lbm_env_drop_binding
lbm_value lbm_env_drop_binding(lbm_value env, lbm_value key)
Definition: env.c:170
lbm_env_set_functional
lbm_value lbm_env_set_functional(lbm_value env, lbm_value key, lbm_value val)
Definition: env.c:133
lbm_env_lookup
lbm_value lbm_env_lookup(lbm_value sym, lbm_value env)
Definition: env.c:92
lbm_init_env
int lbm_init_env(void)
Definition: env.c:29
lbm_env_lookup_b
bool lbm_env_lookup_b(lbm_value *res, lbm_value sym, lbm_value env)
Definition: env.c:61
lbm_env_copy_spine
lbm_value lbm_env_copy_spine(lbm_value env)
Definition: env.c:41
lbm_types.h
lbm_env_modify_binding
lbm_value lbm_env_modify_binding(lbm_value env, lbm_value key, lbm_value val)
Definition: env.c:154
lbm_value
uint32_t lbm_value
Definition: lbm_types.h:44
lbm_global_env_lookup
bool lbm_global_env_lookup(lbm_value *res, lbm_value sym)
Definition: env.c:76