diff options
Diffstat (limited to 'nomsu.moon')
| -rwxr-xr-x | nomsu.moon | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -603,5 +603,19 @@ if arg and arg[1] local c = NomsuCompiler() load()(c, {}) ]] +elseif arg + -- REPL: + c = NomsuCompiler() + while true + buff = "" + while true + io.write(">> ") + line = io.read("*L") + if line == "\n" or not line + break + buff ..= line + if #buff == 0 + break + c\run(buff) return NomsuCompiler |
