Michael Ficarra
c8059a752f
fixes #1976 : minor REPL tab completion bug fixes
2011-12-27 00:45:29 -05:00
Michael Ficarra
e2a205ab22
making use of slicing syntax
2011-12-24 06:04:05 -05:00
Michael Ficarra
1c86aee7a4
joyent/node#1914 : REPL no longer hides undefined results
2011-11-05 10:35:27 -04:00
Trevor Burnham
6bec372684
Merging current master
2011-10-23 22:23:29 -04:00
Michael Ficarra
a2c593bc2c
too many newlines after errors in the REPL
2011-09-19 02:18:42 -04:00
Trevor Burnham
cce9ac28c9
Taking an axe to the sandbox (see discussion at #1661 )
2011-09-04 12:26:39 -04:00
Trevor Burnham
efd503f84a
Reloading globals after every REPL command (actually fixes #1654 )
2011-09-04 10:05:26 -04:00
Trevor Burnham
7ba52ae729
Blacklisting certain globals from REPL rather than whitelisting ( fixes #1654 )
2011-09-04 09:54:13 -04:00
Michael Ficarra
13ac72239a
repl: allowing tab completion of an empty line and masking __X
...
reserved helpers from tab completion; fixes #1583
2011-08-08 18:26:50 -04:00
Michael Ficarra
cb8e147212
arranged and formatted nonContextGlobals list in REPL
2011-07-11 13:08:47 -04:00
Michael Ficarra
07baed89ed
Added globals to the REPL that are (for a reason currently unknown to
...
me) not provided by `vm.Script.createContext`
2011-07-11 12:55:29 -04:00
Michael Ficarra
af1cf3400e
fixes tab completion in the REPL
2011-07-10 14:26:31 -04:00
Michael Ficarra
6e9cfd8a33
allow Ctrl-C to escape an unwanted continuation prompt
2011-07-06 22:15:35 -04:00
Michael Ficarra
2a9fd34a03
Made line continuations in the REPL much, much nicer and moved all of
...
the REPL-specific code out of CoffeeScript.eval and into the REPL
function (thanks for the suggestion, @TrevorBurnham)
2011-07-06 22:15:35 -04:00
Michael Ficarra
bb1502a9d7
output a newline before exiting REPL
2011-07-06 22:15:35 -04:00
Michael Ficarra
40ee30ecde
Fixes #1035 , #1425 , and #1444 : (another) overhaul of REPL and
...
CoffeeScript.eval. Instead of writing about all the changes and why I
made those decisions, I'll just answer any questions in the commit
comments, so add a commit comment if you want to question anything.
Thanks to @TrevorBurnham and @satyr for their help/contributions. Also,
closes #1487 . And still no REPL tests...
2011-07-06 22:15:35 -04:00
Michael Ficarra
454aa8433b
fixes #1390 : persistence of non-enumerable global properties in the REPL
2011-05-25 03:43:10 -04:00
Trevor Burnham
824e081005
Fixing unavailability of global properties on REPL
2011-05-01 01:45:14 -04:00
Michael Ficarra
7efea4bb23
removed "globals" option of CoffeeScript.compile and enhanced fix from
...
previous commits
2011-04-29 15:53:30 -04:00
Michael Ficarra
63ce244359
Better fixes for problem mentioned in last 3 commits. Also adds _
...
special value (as in node's REPL) that always holds return value of last
executed expression. Finally, fixes #1109
2011-04-29 13:59:59 -04:00
Jeremy Ashkenas
238dc3a5b6
merging in #1268 ... michaelficarra's colored REPL.
2011-04-09 17:42:03 -07:00
Michael Ficarra
d0f047dfe7
improved fix for #1266
2011-04-07 19:40:45 -04:00
Michael Ficarra
8e7c454de0
disabling colours for win32 and in presence of NODE_DISABLE_COLORS
...
environment variable
2011-04-05 20:51:28 -04:00
Michael Ficarra
68c75c7eb1
pretty node-like output in the REPL
2011-04-05 20:40:54 -04:00
Jeremy Ashkenas
3b2bade2f2
Use the newer Node.js binding for 'vm'.
2011-03-16 05:47:58 -05:00
Jeremy Ashkenas
005c5309c4
Merging in stable at 1.0.1
2011-01-31 23:34:34 -05:00
Jeremy Ashkenas
a487259e8e
Backporting the REPL fix for Node 0.3.7 and Coffee 1.0-stable
2011-01-31 22:27:56 -05:00
Jeremy Ashkenas
3c9fdde24b
resolved merge
2011-01-30 19:40:59 -05:00
Jeremy Ashkenas
578a46fbda
Issue #875 -- console.log in the REPL
2011-01-30 19:32:07 -05:00
Timothy Jones
f231809e22
Swapping == with <, just in case.
2011-01-23 00:54:43 +13:00
Isaac Wolkerstorfer
496816acff
Add backwards compatibility for older readline
...
Check the readline.createInterface for arity. If it is 3,
assume the newer interface requiring separate stdin and stdout.
Otherwise, use the older calling style.
2011-01-22 12:30:22 +01:00
Isaac Wolkerstorfer
78b52f5716
Replace stdio with stdin/stdout pair for readline
...
On Node.js v0.3.6, the readline interface expects (in, out, complete).
This change makes the coffee-script repl conform to that expectation.
2011-01-22 11:40:25 +01:00
Jeremy Ashkenas
d8823ed45e
Implemented continuable lines in the REPL. Use a trailing slash. Multiline functions are now possible.
2011-01-15 15:06:51 -05:00
Jeremy Ashkenas
9a63b3147f
First implementation of autocomplete.
2011-01-15 14:53:07 -05:00
Jeremy Ashkenas
3f586ff4ab
Merge branch 'master' into 1.1-pre
2011-01-15 14:50:44 -05:00
Jeremy Ashkenas
7c7b9a4be1
Merging in 1035 fix. fileName -> filename ... a bit of refactoring.
2011-01-15 10:46:53 -05:00
Ryszard Szopa
bb745a8036
Basic REPL autocomplete.
...
It sort of works, but the tests could are incomplete.
2010-12-29 12:59:23 +01:00
Jeremy Ashkenas
b18d0d75fd
adding newlines after error stacktrace in REPL.
2010-12-05 15:46:04 -05:00
Jeremy Ashkenas
77e13e459b
Fixing the repl so that errors print properly, and async exceptions are logged instead of killing the session.
2010-12-05 15:40:49 -05:00
Jeremy Ashkenas
a75368e2e8
Fixing the REPL.
2010-10-24 21:15:20 -04:00
Jeremy Ashkenas
6347849cd0
Switching parenthesized side in comprehensions.
2010-10-24 14:11:09 -04:00
Jeremy Ashkenas
26a115adcf
Removing the mixed-in sys/util module. Switching from 'puts' to console.log
2010-10-24 12:48:42 -04:00
satyr
88cc1ee35d
765: -b/--bare <- --no-wrap
2010-10-14 04:09:56 +09:00
Sam Stephenson
6e6165796c
noWrap: true -> wrap: false
2010-10-10 11:55:01 -04:00
satyr
e0ed254252
helpers: now directly exported
2010-09-25 09:29:44 +09:00
Tim-Smart
c49cd02365
Fix REPL. Add CoffeeScript.eval method as run doesn't return result.
2010-09-21 17:36:23 +12:00
Jeremy Ashkenas
9df3e6a538
first step towards requiring #{ ... } interpolation -- removing naked interps from the compiler.
2010-08-07 08:02:16 -04:00
Jeremy Ashkenas
071b527b66
Issue #559 , renaming {source} option to {fileName}, on CoffeeScript.compile
2010-07-30 20:37:12 -04:00
Jeremy Ashkenas
d624310be1
waypoint commit with both # and $ performing interpolation. Issue #544
2010-07-26 23:08:09 -04:00
Jeremy Ashkenas
d1ffffab04
Using an experimental version of new optional-brace object literals.
2010-07-24 23:42:37 -07:00