Files
node/test/simple
seebees 3421f43351 .load, .save and local scope tab completion
Fixes #2063.

REPLServer.prototype.resetContext:
Reset the line cache

REPLServer.prototype.memory (don't know if I like that name, called from finish)
pushes what cmd's have been executed against it into this.lines
pushes the "tab depth" for bufferedCommands, in this.lines.level

REPLServer.prototype.displayPrompt:
Uses "tab depth" from this.lines.level to adjust the prompt to visually
denote this depth e.g.
> asdf = function () {
… var inner = {
….. one:1

REPLServer.prototype.complete:
Now notices if there is a bufferedCommand and attempts determine locally
scoped variables by removing any functions from this.lines and evaling these
lines in a nested REPL e.g.
> asdf = function () {
… var inner = { one: 1};
… inn\t
will complete to 'inner' and inner.o\t will complete to 'inner.one'
If the nested REPL still has a bufferedCommand it will falls back to the
default.

ArrayStream is a helper class for the nested REPL to get commands pushed to it.
new REPLServer('', new ArrayStream());

Finally added two new REPL commands .save and .load, each takes 1 parameter,
a file and attempts to save or load the file to or from the REPL
respectively.
2011-11-12 11:34:55 -08:00
..
2011-11-02 16:38:59 -07:00
2011-10-05 18:51:06 -07:00
2011-10-05 18:51:06 -07:00
2011-10-21 14:55:28 -07:00
2011-11-02 16:38:59 -07:00
2011-10-05 18:51:06 -07:00
2011-11-01 22:26:52 +01:00
2011-11-01 22:26:52 +01:00
2011-11-01 22:26:52 +01:00
2011-10-22 14:14:40 +09:00
2011-10-22 14:14:40 +09:00
2011-10-22 14:14:40 +09:00
2011-10-22 14:14:40 +09:00
2011-10-22 14:14:40 +09:00
2011-11-02 16:38:59 -07:00
2011-07-12 22:42:09 +02:00
2011-11-02 16:38:59 -07:00
2011-10-05 18:51:06 -07:00
2011-11-02 16:38:59 -07:00
2011-11-11 17:02:43 +01:00
2011-10-27 04:33:24 +09:00
2011-10-05 18:51:06 -07:00
2011-09-30 15:44:13 +09:00
2011-10-05 18:51:06 -07:00
2011-08-09 13:55:04 -07:00
2011-10-27 04:33:24 +09:00
2011-10-05 18:51:06 -07:00