rename module from execute to transpile.
since that's what it actually does.
This commit is contained in:
parent
29ea9dd356
commit
fb48804bee
|
@ -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) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
export function execute (program) {
|
||||
export function transpile (program) {
|
||||
return call_fn(program);
|
||||
}
|
||||
|
Loading…
Reference in New Issue