]> git.lizzy.rs Git - nothing.git/blobdiff - src/script/interpreter.h
(#408) use stdbool in camera unit
[nothing.git] / src / script / interpreter.h
index d61ac7adce63173879a228dbe6c8f9b73ca81870..8aca7d10960532c1816fdd5f431072b14172a440 100644 (file)
@@ -6,16 +6,13 @@
 #include <stdio.h>
 #include "expr.h"
 
-struct EvalResult
-{
-    bool is_error;
-    struct Expr expr;
-    struct Expr scope;
-};
+struct Scope;
+struct Gc;
 
-struct EvalResult eval_success(struct Expr expr, struct Expr scope);
-struct EvalResult eval_failure(struct Expr expr, struct Expr scope);
 
-struct EvalResult eval(Gc *gc, struct Expr scope, struct Expr expr);
+struct EvalResult eval_success(struct Expr expr);
+struct EvalResult eval_failure(struct Expr expr);
+
+struct EvalResult eval(Gc *gc, struct Scope *scope, struct Expr expr);
 
 #endif  // INTERPRETER_H_