satyr
1d4d7e96fa
quit using sp?licing ranges
2010-10-13 05:47:45 +09:00
satyr
9447796d8e
made unless less parenfull
2010-10-07 20:05:22 +09:00
satyr
95bc4c5eeb
reenabled stricter caching on For compilation as well as reduced a line from it
2010-10-07 12:31:05 +09:00
Jeremy Ashkenas
d4dac214ab
optimizing comprehensions source references
2010-10-06 21:13:11 -04:00
satyr
cdd033ffb0
disabled interpolations in normal regexes
2010-10-04 21:51:04 +09:00
Jeremy Ashkenas
26de26f88f
conditionals with no alternative now evaluate to 'undefined' instead of 'null'
2010-10-01 20:52:23 -04:00
satyr
7450df8104
#713 : destructuring assignment is no longer statement and correctly returns RHS value
2010-09-29 05:47:12 +09:00
satyr
e0ed254252
helpers: now directly exported
2010-09-25 09:29:44 +09:00
Jeremy Ashkenas
c435647589
removing the ability to force an if/else chain to be compiled as a statement. Ternaries will now be used as much as possible.
2010-09-22 00:41:17 -04:00
Jeremy Ashkenas
25c8b4b34f
Using the Array spaces trick to generate padding and indentation.
2010-09-21 23:17:43 -04:00
satyr
b19c004680
made wrapper function keep current this
2010-09-21 16:53:58 +09:00
Jeremy Ashkenas
a16594ed7b
Merging in Stan's temporary_junk improvements.
2010-09-20 22:13:08 -04:00
Jeremy Ashkenas
f7fce3cd68
tweaking compiled tempvar names to satisfaction.
2010-09-20 21:56:18 -04:00
Stan Angeloff
99a06ce4ea
Updating name for cached length temporary variables to '_length', 'length2', and
...
so on.
2010-09-20 08:42:31 +03:00
Stan Angeloff
bb35b3e3b2
Re-compiling core with new changes. All tests pass.
2010-09-19 15:29:15 +03:00
Jeremy Ashkenas
117204a784
Revert "Issue #619 . 'new' operator misbehavior."
...
This reverts commit e7834de929 .
2010-08-21 19:16:02 -04:00
Jeremy Ashkenas
e7834de929
Issue #619 . 'new' operator misbehavior.
2010-08-21 18:54:24 -04:00
Jeremy Ashkenas
9894eeb8e9
Improving double-parentheses suppression. Issue #587
2010-08-14 17:43:58 -04: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
dc1288d319
slightly optimizing return values of AssignNodes. Issue #539
2010-07-24 12:27:11 -07:00
Jeremy Ashkenas
3b6f020f8a
Making the spacing of symbols on function declaration consistent. No-space when single-line. Spaced when block. (StanAngeloff)
2010-07-24 08:31:43 -07:00
Jeremy Ashkenas
5a34f53689
enhancements to range comprehensions, back to being safe -- and usable downwards without a 'by' clause, and optimized when working with integer literals.
2010-07-17 18:45:29 -04:00
Jeremy Ashkenas
72c4efbc39
adding a new comprehension 'for all key, value of object', which compiles to the naked JS for..in, including enumerable properties inherited from prototypes.
2010-07-15 21:18:35 -04:00
Jeremy Ashkenas
08ab4abd43
removing obvious redundant parentheses.
2010-06-27 23:55:18 -04:00
Jeremy Ashkenas
ec570c46bf
Big commit. First draft of stripping comments from generated JS output. Issue #41
2010-06-27 12:59:54 -04:00
Jeremy Ashkenas
e14f4c5db1
First draft of switching the CoffeeScript Compiler over to camelCase. Pour one on the ground for underscores...
2010-06-12 19:05:13 -04:00
Jeremy Ashkenas
7402aea9f2
cleaner generated code for range comprehensions, but you have to use an explicit step to go downwards. Forked the code path for cleaner range literals as well.
2010-05-31 19:38:45 -04:00
Jeremy Ashkenas
a8d4c3a567
sprinkling toString() throughout, for Node.js 0.1.95 compatibility.
2010-05-15 00:34:14 -04:00
Jeremy Ashkenas
dfb3a13246
Fixed lingering CoffeeScript Compiler running live in Internet Explorer bugs. Implemented helpers.index_of and removed named functions. Ticket #366
2010-05-14 23:40:04 -04:00
Dan Holmsand
144c096ae6
Remove unused variable index_var from for loops
2010-04-30 09:48:30 +02:00
Jeremy Ashkenas
92af641827
no newline on no_such_task for Cake
2010-04-27 07:59:19 -04:00
Jeremy Ashkenas
835ecac8db
simplifying some unecessary interpolated expressions into interpolated values.
2010-04-11 16:57:53 -04:00
Jeremy Ashkenas
8317960f81
Battery of patches for compatibility with Node v0.1.90
2010-04-10 18:05:35 -04:00
Jeremy Ashkenas
065bf54094
generated closures should only call() or apply() when necessary.
2010-04-10 14:40:05 -04:00
Chris Lloyd
19ed63129e
Interpolated strings are expressions.
2010-04-04 17:05:52 +10:00
Jeremy Ashkenas
89534b88b1
merging in Chris Lloyd's fix for optional descriptions on Cake tasks.
2010-04-04 00:20:17 -04:00
Jeremy Ashkenas
864275f07e
removing __range, and all the slice behavior it enabled. If you can't do array[-1], then you shouldn't be able to do array[0..-1] -- it's just too inconsistent.
2010-03-30 20:06:44 -04:00
matehat
ca9e45e8af
Removed the __slice method, in favor of the native array slice method
2010-03-30 17:57:23 -04:00
matehat
97096696a2
Put back every utility functions on the global scope, automatically prefixed with __ and set them dynamically as reserved on the lexer.
2010-03-30 16:48:43 -04:00
matehat
da43c70488
Merged in StanAngeloff excellent slice branch, applying recent factoring of utility functions
2010-03-30 15:43:30 -04:00
Stan Angeloff
7d1fbeb708
Re-compiling the core using the new __slice and __splice functions.
2010-03-30 14:32:37 -04:00
matehat
9f108e87eb
Removed unused __hasProp assignment and declared Coffeescript a reserved name
2010-03-30 11:20:53 -04:00
matehat
241f6f3068
Applied the utility factoring into a "Coffeescript" object to the core. All tests pass fast.
2010-03-30 09:02:51 -04:00
Jeremy Ashkenas
7de5253318
removing unused reserved variable 'source var' from range comprehensions
2010-03-27 16:04:47 -04:00
Chris Lloyd
c9b6e82e2c
Optional sentence descriptions for cake tasks.
2010-03-26 20:25:17 +11:00
Jeremy Ashkenas
80230414a2
merging in gfxmonk's major refactor to the way that returns are pushed down into the interior of expressions
2010-03-21 11:28:05 -04:00
gfxmonk
cc3c314988
Cleaned up return logic
...
- ReturnNodes are explicitly added during compilation
- ReturnNode is used instead of scattering "return" throughout
code compilation snippets
- nodes gain a make_return method in order to do the most useful
thing when a return is requested
2010-03-21 22:21:55 +11:00
Jeremy Ashkenas
02f4cb75dd
removing deprecated references to process.mixin in favor of helpers.extend for Node 0.1.32
2010-03-15 22:53:25 -07:00
Jeremy Ashkenas
119b80d449
removing fiddling with require.paths from CoffeeScript
2010-03-15 20:39:46 -07:00