diff options
author | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2024-03-03 14:20:36 -0700 |
---|---|---|
committer | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2024-03-03 14:22:51 -0700 |
commit | e2e74df94fcdd2f3165e035fc00c98573f0b40d8 (patch) | |
tree | 362943ba180b3ba0298473855e2622f7560c84aa /src/interpreter/interpreter.ts | |
parent | 4233aca561b5650924f3cc4232cfd294d706c863 (diff) | |
download | the-abstraction-engine-e2e74df94fcdd2f3165e035fc00c98573f0b40d8.tar.gz the-abstraction-engine-e2e74df94fcdd2f3165e035fc00c98573f0b40d8.zip |
add parser
Diffstat (limited to 'src/interpreter/interpreter.ts')
-rw-r--r-- | src/interpreter/interpreter.ts | 10 |
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); +}; |