rename module from execute to transpile.

since that's what it actually does.
This commit is contained in:
trans_soup 2023-11-06 22:02:47 +01:00
parent 29ea9dd356
commit fb48804bee
2 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@ import Expr from "./Expr.mjs";
import { parse_line } from "./parse.mjs";
import { compile_line } from "./compile.mjs";
import { execute } from "./execute.mjs";
import { transpile } from "./transpile.mjs";
import readline from "node:readline";
@ -71,7 +71,7 @@ function run (line) {
}
function evaluate (fn) {
return execute(fn[0])(fn[1]);
return transpile(fn[0])(fn[1]);
}
function prettify (code) {

View File

@ -1,4 +1,4 @@
export function execute (program) {
export function transpile (program) {
return call_fn(program);
}