Get called functions from the environment
[fur] / templates / program.c
index f23640a..0d6d947 100644 (file)
@@ -330,6 +330,11 @@ int main(int argc, char** argv)
 {
   Environment* environment = Environment_construct();
 
+  // TODO Use the symbol from SYMBOL_LIST
+  {% for builtin in builtins %}
+  Environment_set(environment, "{{ builtin }}", builtin${{ builtin }});
+  {% endfor %}
+
   {% for statement in statements %}
   {{ statement }}
   {% endfor %}