Jeremy Ashkenas
|
2f3a94678f
|
fixing instanceof, with a quick test
|
2010-01-27 07:55:40 -05:00 |
|
Jeremy Ashkenas
|
386d3dd307
|
complete implicit functions, I think these are done.
|
2010-01-26 21:15:56 -05:00 |
|
Jeremy Ashkenas
|
aa93d3c387
|
first draft of whitespace-sensitive method calls and indexes.
|
2010-01-26 20:59:52 -05:00 |
|
Jeremy Ashkenas
|
ab4a4a5580
|
make nested implicit indentation just a little bit smarter about outdents and stack levels
|
2010-01-26 14:49:33 -05:00 |
|
Jeremy Ashkenas
|
a9f016e292
|
trying out new arrows for function literals -> is a function, => is a bound function
|
2010-01-26 10:52:05 -05:00 |
|
Jeremy Ashkenas
|
fb7fd53bdf
|
enabling passed functions to fire implicit method calls
|
2010-01-26 02:27:19 -05:00 |
|
Jeremy Ashkenas
|
29e4043f26
|
tests passing with smarter block syntax with optional parens
|
2010-01-26 02:15:08 -05:00 |
|
Jeremy Ashkenas
|
460b3f6d8e
|
first draft of mandatory parentheses around function definition param lists -- all tests pass
|
2010-01-26 00:40:58 -05:00 |
|
Jeremy Ashkenas
|
91e703052c
|
fixing chained single-line if-elses with a smarter rewriter.
|
2010-01-25 20:52:33 -05:00 |
|
Jeremy Ashkenas
|
8d63d269b8
|
making all postfix forms close out implicit calls, as in Ruby
|
2010-01-24 23:56:27 -05:00 |
|
Jeremy Ashkenas
|
a5d39efdd2
|
converted the tests to use optional parentheses -- lot's of little subtleties to work out
|
2010-01-24 23:40:45 -05:00 |
|
Jeremy Ashkenas
|
70e3a6ef2f
|
first draft of optional parentheses, with a couple tests ... more to follow
|
2010-01-24 22:32:06 -05:00 |
|
Jeremy Ashkenas
|
af53a04932
|
added test for lexical scope sharing through generated closure wrappers, something uncommonly used, but that was a regression
|
2010-01-24 13:39:27 -05:00 |
|
Jeremy Ashkenas
|
817e8deb27
|
adding soaked method calls, with caching
|
2010-01-24 12:52:15 -05:00 |
|
Jeremy Ashkenas
|
d728c3d669
|
added existence chains with '?.' -- soaks up attempts to access undefined properties, returning 'undefined'
|
2010-01-23 23:30:55 -05:00 |
|
Jeremy Ashkenas
|
c3ce2ea9b1
|
added automatic safety closure wrapper for functions declared within for loops.
|
2010-01-23 17:53:07 -05:00 |
|
Jeremy Ashkenas
|
791d874058
|
fixing comments as the last line of a block
|
2010-01-20 20:36:31 -05:00 |
|
Jeremy Ashkenas
|
a8ae37a428
|
fixing bug with multiple linebreaks in heredocs
|
2010-01-19 09:49:23 -05:00 |
|
Jeremy Ashkenas
|
4609ad78c2
|
added the first chapter of beautiful code as a coffeescript example
|
2010-01-17 15:36:46 -05:00 |
|
Jeremy Ashkenas
|
8e1f3c0eca
|
generating multiple calls to the same function should use compile_double_reference to ensure a single evaluation of the call itself.
|
2010-01-17 14:23:41 -05:00 |
|
Jeremy Ashkenas
|
c4d0903e6a
|
fixing assignment-in-condition
|
2010-01-17 10:40:59 -05:00 |
|
Jeremy Ashkenas
|
f6c8e81ea6
|
the existential operator can now be used infix as well
|
2010-01-16 23:03:54 -05:00 |
|
Jeremy Ashkenas
|
95b362499f
|
added the conditional existence operator
|
2010-01-16 22:17:55 -05:00 |
|
Jeremy Ashkenas
|
0bc4da2b51
|
ensure that functions are only called once, when chaining comparators
|
2010-01-16 22:04:08 -05:00 |
|
Jeremy Ashkenas
|
9cb0564972
|
added Python's chainable comparisons, like: 10 > 5 > 1
|
2010-01-16 16:37:49 -05:00 |
|
Jeremy Ashkenas
|
c6c0c7d059
|
simplification of function and prototype naming -- last_assign, immediate_assign, and proto_assign are gone, in favor of 'name' and 'proto' properties on CodeNodes
|
2010-01-16 15:44:07 -05:00 |
|
Jeremy Ashkenas
|
62e946b8ce
|
purely empty functions at the top level should be wrapped in parens, so as not to cause a JS syntax error
|
2010-01-16 15:02:04 -05:00 |
|
Jeremy Ashkenas
|
9eff443032
|
arguments no longer is just a find-and-replace -- it'll fix the arguments variable at the top of scope if you use it in a function body
|
2010-01-16 12:52:26 -05:00 |
|
Jeremy Ashkenas
|
8957feedb4
|
expression closure wrappers are now safer -- they won't be generated if there's a statement_only inside
|
2010-01-16 12:10:31 -05:00 |
|
Jeremy Ashkenas
|
1cd7fa8ebe
|
added children macro to Node, using it so that all nodes now have a 'children' method -- used for safe references to 'this' within closure wrappers
|
2010-01-16 11:24:10 -05:00 |
|
Jeremy Ashkenas
|
ed8a54995d
|
with splats allowed in destructuring assignment
|
2010-01-13 22:25:58 -05:00 |
|
Jeremy Ashkenas
|
bb9fdd3015
|
while loops can now be used as expressions -- they return an array containing the computed result of each iteration.
|
2010-01-13 21:27:22 -05:00 |
|
Jeremy Ashkenas
|
1e7d638435
|
adding bound functions, with test
|
2010-01-13 20:59:57 -05:00 |
|
Jeremy Ashkenas
|
0ceca0778c
|
adding when clauses with multiple values
|
2010-01-13 19:56:35 -05:00 |
|
Jeremy Ashkenas
|
f0d5db7e66
|
fixing heredocs to use the left-most indent as the indentation guide -- not just the first line of the heredoc
|
2010-01-12 23:06:12 -05:00 |
|
Jeremy Ashkenas
|
c19647ad33
|
adding and fixing test for empty strings
|
2010-01-12 08:52:44 -05:00 |
|
Jeremy Ashkenas
|
c8d505e85d
|
heredoc docs
|
2010-01-12 00:00:38 -05:00 |
|
Jeremy Ashkenas
|
477c510345
|
adding heredocs, with tests
|
2010-01-11 23:53:50 -05:00 |
|
Jeremy Ashkenas
|
5e1e949bf6
|
a passing test for destructuring assignment (it needs a better name)
|
2010-01-11 22:04:25 -05:00 |
|
Jeremy Ashkenas
|
9cc7d6af27
|
little lexer tweak
|
2010-01-11 08:46:50 -05:00 |
|
Jeremy Ashkenas
|
cfa357cbc3
|
CoffeeScript 0.2.3, with 'of', not 'ino'
|
2010-01-11 00:01:16 -05:00 |
|
Jeremy Ashkenas
|
d1ddeacbe3
|
more refactors to nodes
|
2010-01-10 22:35:55 -05:00 |
|
Jeremy Ashkenas
|
24408c785a
|
caught a close call bug with object comprehensions and not specifying the value
|
2010-01-10 17:44:19 -05:00 |
|
Jeremy Ashkenas
|
bb5bf7f94f
|
more docs, more tests
|
2010-01-10 17:36:06 -05:00 |
|
Jeremy Ashkenas
|
ad18378f7e
|
adding '::' as shorthand for '.prototype.'
|
2010-01-10 16:16:59 -05:00 |
|
Jeremy Ashkenas
|
902febb43a
|
big commit -- adding back object comprehensions, using 'ino', versus 'in' for array comprehensions, fixing bug with dollar signs in identifiers
|
2010-01-10 15:52:23 -05:00 |
|
Jeremy Ashkenas
|
13fc8aea04
|
removing object comprehensions from CoffeeScript, they were necessitating the generation of too much ugly JS
|
2010-01-10 14:45:44 -05:00 |
|
Jeremy Ashkenas
|
8e3922b6c6
|
allowing comments in the middle of switch statements
|
2010-01-09 13:25:44 -05:00 |
|
Jeremy Ashkenas
|
2319affa61
|
allowing chained calls broken up over multiple lines with periods at the front (jQuery-style)
|
2010-01-09 12:12:38 -05:00 |
|
Jeremy Ashkenas
|
7befbddae2
|
adding test for body-less while, using null as the body so JSLint doesn't get in a tizzy
|
2010-01-09 11:58:50 -05:00 |
|