summaryrefslogtreecommitdiff
path: root/src/interpreter/interpreter.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/interpreter/interpreter.ts')
-rw-r--r--src/interpreter/interpreter.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/interpreter/interpreter.ts b/src/interpreter/interpreter.ts
new file mode 100644
index 0000000..c16984f
--- /dev/null
+++ b/src/interpreter/interpreter.ts
@@ -0,0 +1,10 @@
+import { parse, type LambdaTerm } from ".";
+
+export const evaluate = (_term: LambdaTerm): LambdaTerm => {
+ return "";
+};
+
+export const interpret = (term: string): LambdaTerm => {
+ const ast = parse(term);
+ return evaluate(ast);
+};