From bf28a946ec3f36f447d90bda0a7f8d814df25041 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juhani=20Krekel=C3=A4?= Date: Sat, 26 May 2018 13:15:34 +0300 Subject: [PATCH] Rename run() to ircbotRun(), since it's meant for them --- README.md | 2 +- gir.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) 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));