Commit b0a3d7e6bf88a544cb34a0f06278c26ae2c3a245

Thomas de Grivel 2023-08-10T15:43:35

wip env_resolve_call

diff --git a/README.md b/README.md
index ab1ebf2..76d73ff 100644
--- a/README.md
+++ b/README.md
@@ -54,7 +54,7 @@ structures.
 
 #### Parser
 
-The parser is recursive descent for now.
+The parser is recursive descent.
 
 #### AST
 
@@ -87,6 +87,8 @@ Script interpreter.
    - math
      - floating point numbers
    - variables
+      - DONE = equal
+      - funcall
    - DONE boolean operators
    - DONE comparison operators
    - arrays
diff --git a/libc3/env.c b/libc3/env.c
index f8eb1d2..8297aa7 100644
--- a/libc3/env.c
+++ b/libc3/env.c
@@ -71,7 +71,7 @@ void env_error_tag (s_env *env, const s_tag *tag)
   }
 }
 
-bool env_eval_call (s_env *env, const s_call *call, s_tag *dest)
+bool env_resolve_ident (s_env *env, const s_call *call, s_tag *dest)
 {
   s_call c;
   s_facts_with_cursor cursor;
@@ -153,6 +153,10 @@ bool env_eval_call (s_env *env, const s_call *call, s_tag *dest)
   return result;
 }
 
+bool env_eval_call (s_env *env, const s_call *call, s_tag *dest)
+{
+}
+
 bool env_eval_call_arguments (s_env *env, s_list *args, s_list **dest)
 {
   s_list **tail;
diff --git a/libc3/types.h b/libc3/types.h
index 607600e..aada376 100644
--- a/libc3/types.h
+++ b/libc3/types.h
@@ -294,6 +294,8 @@ struct call {
   /* value */
   s_cfn *cfn;
   s_fn *fn;
+  bool macro;
+  bool special_operator;
 };
 
 struct cfn {