1 import { readline } from "./node_readline";
3 import { MalType } from "./types";
4 import { readStr } from "./reader";
5 import { prStr } from "./printer";
8 function read(str: string): MalType {
13 function evalMal(ast: any, _env?: any): any {
19 function print(exp: MalType): string {
23 function rep(str: string): string {
24 return print(evalMal(read(str)));
28 const line = readline("user> ");
36 console.log(rep(line));
39 console.error(err.message);