Neko REPL

Enter a line of code at the prompt, and press the Enter/Return key to evaluate. Clicking a prior input line will copy that line into the current prompt, discarding what is already there.

The printed stack below the prompt updates once the whole line of code is finished evaluating (unless there is a JavaScript error). The definitions section autopopulates as you add defns during the session. You can expand sections by clicking their titles.

The Documentation is available to peruse. You might also want to look at the simple guessing game I've implemented to get an idea of what Neko code looks like in action. If you're still here after that, you might find the mathematics of Neko interesting.

The File Viewer allows you to read the syntax-highlighted code of any Neko file currently available to load. Many of these files are heavily commented to help understand what the function is doing to the stack as it evaluates. If you're curious about Neko, I suggest you start with lib/stdlib and demo/guess-game.

The REPL options can be controlled from the "Options" tab. The options mostly control what the REPL prints to the browser console as your code executes (for debugging). All options can be controlled from the prompt using setopt. The current value of an option set on the page is always printed for your ease of viewing (which is most useful when your code plays around with setopt).

Please email eppolito[dot]math(at)[google's mail service](dot)com explaining any troubles you have with the interface. I would also like to know immediately if you encounter any JavaScript errors. This shouldn't happen while using ordinary Neko commands with the default options, so I'd want to fix that as soon as possible.

Options

Stack:

Definitions