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
|
6c782b7723
|
fixes for syntax highlighting assignments and regexes
|
2010-01-16 14:28:42 -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
|
701cdb4c13
|
never try to push a statement_only
|
2010-01-15 19:47:16 -05:00 |
|
Jeremy Ashkenas
|
8dc5da9cc9
|
adding coffee-haml-filter to the resources section
|
2010-01-14 14:44:03 -05:00 |
|
Jeremy Ashkenas
|
001cc29deb
|
slightly shorter generated code for ==>
|
2010-01-14 08:55:09 -05:00 |
|
Jeremy Ashkenas
|
e77e520607
|
CoffeeScript 0.2.5 is on the books
0.2.5
|
2010-01-13 23:24:45 -05:00 |
|
Jeremy Ashkenas
|
ed8a54995d
|
with splats allowed in destructuring assignment
|
2010-01-13 22:25:58 -05:00 |
|
Jeremy Ashkenas
|
2d206e7b60
|
pulling out pushes into a pushnode
|
2010-01-13 21:33:46 -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
|
abd9ab5c71
|
unified ParamSplatNode and ArgSplatNode into SplatNode
|
2010-01-12 23:49:47 -05:00 |
|
Jeremy Ashkenas
|
ea349a1a59
|
more safety type-checks in nodes.rb
|
2010-01-12 23:26: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
|
914ba1c244
|
removing commented-out bit
|
2010-01-12 18:01:12 -05:00 |
|
Jeremy Ashkenas
|
844ea33274
|
mistaken commit
|
2010-01-12 17:45:06 -05:00 |
|
Jeremy Ashkenas
|
87e04e9952
|
nicer syntax error messages for newlines and indentation
|
2010-01-12 17:44:37 -05:00 |
|
Jeremy Ashkenas
|
197914bcf7
|
nicer syntax error messages for newlines and indentation
|
2010-01-12 17:44:03 -05:00 |
|
Jeremy Ashkenas
|
8dfbd1a2a8
|
using Object.prototype.hasOwnProperty.call instead of obj.hasOwnProperty, with an alias, for Rhino and java objects
|
2010-01-12 17:35:37 -05:00 |
|
Jeremy Ashkenas
|
c19647ad33
|
adding and fixing test for empty strings
|
2010-01-12 08:52:44 -05:00 |
|
Jeremy Ashkenas
|
27f7ef09af
|
allow leading newlines in coffee scripts
|
2010-01-12 08:49:39 -05:00 |
|
Jeremy Ashkenas
|
9a61bbf005
|
CoffeeScript 0.2.4, with pattern matching and heredocs
0.2.4
|
2010-01-12 00:09:23 -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
|
c3029faca7
|
documentation for pattern matching
|
2010-01-11 22:55:01 -05:00 |
|
Jeremy Ashkenas
|
186797a745
|
got compile_pattern_match about as small as its going to get
|
2010-01-11 22:16:23 -05:00 |
|
Jeremy Ashkenas
|
d54fa2f2a1
|
a whole chunk of compile_pattern_match was redundant, axed it -- along with the array/vs/object split
|
2010-01-11 22:12:18 -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
|
6c980d8adc
|
first draft of destructuring assignment -- working out the wrinkles -- not sure if we want to do the full spec
|
2010-01-11 21:44:47 -05:00 |
|
Jeremy Ashkenas
|
2f63439bff
|
swapping around the order of variable declaration in array comprehensions, so that it comes out in the proper order: __a, __b, __c
|
2010-01-11 09:16:08 -05:00 |
|
Jeremy Ashkenas
|
c7cb308b6d
|
adding note about parens-around-ambiguous-function-defs to the docs
|
2010-01-11 09:09:06 -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'
0.2.3
|
2010-01-11 00:01:16 -05:00 |
|
Jeremy Ashkenas
|
9d8668f37f
|
added a whole slew of nice Potion examples from the pamphlet -- CoffeeScript stacks up pretty well.
|
2010-01-10 23:27:57 -05:00 |
|
Jeremy Ashkenas
|
d1ddeacbe3
|
more refactors to nodes
|
2010-01-10 22:35:55 -05:00 |
|
Jeremy Ashkenas
|
d9d09a9a72
|
refactoring and commenting nodes.rb Expressions
|
2010-01-10 22:04:38 -05:00 |
|
Jeremy Ashkenas
|
a1528f3f19
|
rebuilt the narwhal interface
|
2010-01-10 20:25:09 -05:00 |
|
Jeremy Ashkenas
|
7d2a955e0a
|
bumping the license to 2010
|
2010-01-10 17:57:29 -05:00 |
|
Jeremy Ashkenas
|
24408c785a
|
caught a close call bug with object comprehensions and not specifying the value
0.2.2
|
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
|
3e987de4a8
|
rebuilding underscore.coffee docs, adding a build task -- need to remember to copy over nicer headers
|
2010-01-10 17:23:07 -05:00 |
|
Jeremy Ashkenas
|
de74bce2cd
|
more docs for 0.2.2
|
2010-01-10 17:14:20 -05:00 |
|
Jeremy Ashkenas
|
c265b7d5d6
|
updating comprehension speed test with the new normal comprehensions
|
2010-01-10 16:39:38 -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 |
|