]> git.lizzy.rs Git - nothing.git/blob - src/script/interpreter.h
Merge pull request #333 from tsoding/lambda
[nothing.git] / src / script / interpreter.h
1 #ifndef INTERPRETER_H_
2 #define INTERPRETER_H_
3
4 #include <stdbool.h>
5 #include <stdlib.h>
6 #include <stdio.h>
7 #include "expr.h"
8
9 struct Scope;
10
11 struct EvalResult
12 {
13     bool is_error;
14     struct Expr expr;
15 };
16
17 struct EvalResult eval_success(struct Expr expr);
18 struct EvalResult eval_failure(struct Expr expr);
19
20 struct EvalResult eval(Gc *gc, struct Scope *scope, struct Expr expr);
21
22 #endif  // INTERPRETER_H_