examples/repl.js in nilac-0.0.4.3.9.7.1 vs examples/repl.js in nilac-0.0.4.3.9.8

- old
+ new

@@ -1,33 +1 @@ -//Written using Nila. Visit http://adhithyan15.github.io/nila -(function() { - var read, readline, rl, stream; - - // This is a small REPL for Nila to test out nila code and do bug fixes - - readline = require('readline'); - - require('fs'); - - stream = fs.createWriteStream("my_file.nila"); - - stream.once('open',function(fd) { - stream.write("Testing!\n"); - stream.; - }); - - rl = readline.createInterface(process.stdin, process.stdout); - - rl.setPrompt('nila> '); - - rl.prompt(); - - read = rl.on('line',function(line) { - rl.prompt(); - }); - - read.on('close',function() { - console.log("Have a great day!"); - process.exit(0); - }); - -}).call(this); \ No newline at end of file