diff --git a/README.md b/README.md index 24bf6b8..c49f748 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ TODO ### gir.js * Make VM and transformMultiplyLoops use a Proxied object that gives out 0 for nonexistent elements for tape and allows using [] interface -* Keep a cache of compiled programs in `run()` +* Keep a cache of compiled programs in `ircbotRun()` * Support for other types of EOF? ### gir.html diff --git a/gir.js b/gir.js index 4cdfd9c..31fc1a6 100644 --- a/gir.js +++ b/gir.js @@ -917,9 +917,8 @@ function compile(program, enableExtensions = true) { return optimize(parse(program, enableExtensions)); } -// TODO: Rename to fit purpose // (string, string, int) → string -function run(program, input, maxCycles = null) { +function ircbotRun(program, input, maxCycles = null) { // TODO; Cache programs let compiled = compile(program); let vm = newVM(compiled, encodeUTF8(input));