MCPcopy Index your code
hub / github.com/aiscript-dev/aiscript / main

Function main

scripts/repl.mjs:61–72  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

59}
60
61async function main(){
62 try {
63 let ast = await getAst();
64 if (ast == null) {
65 return false;
66 }
67 await interpreter.exec(ast);
68 } catch(e) {
69 console.log(chalk.red(`${e}`));
70 }
71 return true;
72};
73
74while (await main());
75i.close();

Callers 1

repl.mjsFile · 0.85

Calls 3

getAstFunction · 0.85
execMethod · 0.80
logMethod · 0.45

Tested by

no test coverage detected