Jeremy Ashkenas
|
4a85f3d499
|
cleaning up tests ... consolidation, consistency...
|
2010-04-03 10:39:32 -04:00 |
|
Jeremy Ashkenas
|
f99b5ad463
|
Merging Tesco's invoking-this-fix
|
2010-04-03 09:58:45 -04:00 |
|
Jeremy Ashkenas
|
1c628e7883
|
fixing parens-around-implicit-function-with-multiline-chained-chaser bug
|
2010-04-01 23:38:20 -04:00 |
|
Jeremy Ashkenas
|
3605168e85
|
fixing single evaluation of functions used in chained comparisons wrapped in parentheses.
|
2010-03-31 22:48:47 -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 |
|
Stan Angeloff
|
15217c705e
|
Allowing for negative indices in slice literals.
|
2010-03-30 14:30:15 -04:00 |
|
Jeremy Ashkenas
|
177ec92c39
|
adding class methods to class definition syntax, using '@'
|
2010-03-29 21:43:12 -04:00 |
|
Jeremy Ashkenas
|
83c0e77ca8
|
making the Rewriter's add_implicit_calls more sensitive of parenthetical arguments.
|
2010-03-28 17:12:30 -04:00 |
|
Jeremy Ashkenas
|
1e315b5a33
|
fixing single-line implicit call wrapped around function with trailing arguments
|
2010-03-28 16:44:41 -04:00 |
|
Jeremy Ashkenas
|
eaf4a71d32
|
Revert "Added Unix-like piping. Allows chaining of function calls where every succeeding call receives as first argument the result of all preceding expressions."
This reverts commit 7ee10e06be.
|
2010-03-27 15:25:34 -04:00 |
|
Jeremy Ashkenas
|
4dd40034ed
|
Revert "removing the special case for | or"
This reverts commit 9763839ed1.
|
2010-03-27 15:25:27 -04:00 |
|
Jeremy Ashkenas
|
9763839ed1
|
removing the special case for | or
|
2010-03-27 10:28:08 -04:00 |
|
Stan Angeloff
|
7ee10e06be
|
Added Unix-like piping. Allows chaining of function calls where every succeeding call receives as first argument the result of all preceding expressions.
|
2010-03-27 15:49:33 +02:00 |
|
matehat
|
8f3ea1d0c5
|
Fixed a small bug that happened when having a trailing comma in multiline array and object literals
|
2010-03-26 14:11:34 -04:00 |
|
matehat
|
b9b87f7d8e
|
Minor modifications to the grammar to allow a single trailing comma for function call arguments, array literal and object literals. Adjusted tests accordingly
|
2010-03-26 11:44:25 -04:00 |
|
Jeremy Ashkenas
|
c8f969b4a2
|
adding a test case for the explicit returns
|
2010-03-25 18:54:17 -04:00 |
|
Jeremy Ashkenas
|
ad93d2fe4d
|
added another language extension test for a << b into a.push(b)
|
2010-03-23 20:42:40 -04:00 |
|
matehat
|
296808d4d3
|
Added splats positional flexibility to pattern matching
|
2010-03-22 01:52:47 -04:00 |
|
Jeremy Ashkenas
|
b7519cb834
|
switching a couple of the half_assignment tests to ensure that : and = are still interchangeable
|
2010-03-21 23:46:58 -04:00 |
|
Jeremy Ashkenas
|
7d6c050048
|
more half-assignment tests
|
2010-03-21 23:39:05 -04:00 |
|
Jeremy Ashkenas
|
16f9a2e6b7
|
rewriting the compiler to use half-expression assignment
|
2010-03-21 23:33:24 -04:00 |
|
Jeremy Ashkenas
|
cbfe7f5822
|
fix and tests for half assignments... whew.
|
2010-03-21 23:24:24 -04:00 |
|
Jeremy Ashkenas
|
0da61ec47e
|
adding a couple of interchangeable tests
|
2010-03-21 21:07:32 -04:00 |
|
Jeremy Ashkenas
|
a2778bf06d
|
resolving issues with comments in the middle of unfinished single-line expressions.
|
2010-03-20 00:58:25 -04:00 |
|
Jeremy Ashkenas
|
29eff23490
|
renaming test_curry to test_bind
|
2010-03-19 23:32:00 -04:00 |
|
Jeremy Ashkenas
|
69911209ea
|
adding a pattern-matching-on-expression test
|
2010-03-19 22:48:55 -04:00 |
|
matehat
|
fe04f8ce6b
|
Added function call's flexibility with splats to array literals, factoring out splat compiling, and adjusted tests
|
2010-03-18 09:31:40 -04:00 |
|
Jeremy Ashkenas
|
0c6ee52cfc
|
merging in matehat's curry branch. cleaning some loose ends up. adding some tests.
|
2010-03-18 00:42:26 -04:00 |
|
matehat
|
1f87094628
|
Slightly altered syntax, similar to Underscore's Function#bind form, highly simplified lexing and parsing and no polluted scope. Passing tests included.
|
2010-03-18 00:19:32 -04:00 |
|
matehat
|
8d098194dd
|
Added the '<-' currying operator, as heavily discussed in #251, along with tests.
|
2010-03-18 00:08:34 -04:00 |
|
Jeremy Ashkenas
|
884637468e
|
fixing off-by-one error in compile_splat_arguments
|
2010-03-17 22:07:11 -04:00 |
|
Jeremy Ashkenas
|
1bb9c57767
|
Merge branch 'splats' of git://github.com/matehat/coffee-script
|
2010-03-17 21:07:31 -04:00 |
|
Jeremy Ashkenas
|
d880b8b8f2
|
adding interpolation to heredocs, using the same rules as for strings
|
2010-03-17 20:47:27 -04:00 |
|
matehat
|
7129f518a4
|
Added the ability for function declaration to have a splat at an arbitrary position, not just at the end. Still restrict their number to 1. Adjusted tests accordingly.
|
2010-03-17 15:00:19 -04:00 |
|
matehat
|
2bd1c3acca
|
Added the ability to put as many splats in a function call as one wants. Also optimized the assembly into static arrays. Adjusted tests accordingly.
|
2010-03-17 15:00:19 -04:00 |
|
Jeremy Ashkenas
|
e3021909c2
|
comments and tests
|
2010-03-16 06:54:49 -04:00 |
|
Jeremy Ashkenas
|
21e954eec3
|
updating module loading test
|
2010-03-15 23:08:58 -07:00 |
|
Jeremy Ashkenas
|
0b3054a348
|
merging in matehat's registerExtension patch for direct-requires of CoffeeScript.
|
2010-03-15 23:03:30 -07:00 |
|
Jeremy Ashkenas
|
3aeb8c6bdb
|
moving the contains-a-pure-statement-means-no-closure logic into ClosureNode.wrap itself.
|
2010-03-15 22:27:31 -07:00 |
|
Jeremy Ashkenas
|
8c2b2c7f80
|
merging in the fixed branch for gfxmonk/break_issue
|
2010-03-15 22:22:41 -07:00 |
|
Jeremy Ashkenas
|
745c635a55
|
fixing issue with break statements and for loops and closures and the value of 'this'
|
2010-03-15 22:20:29 -07:00 |
|
Jeremy Ashkenas
|
3fed9761a6
|
let's make that non-greedy
|
2010-03-15 21:50:33 -07:00 |
|
Jeremy Ashkenas
|
6ccf196b61
|
adding another language extension test, with %w{} style ruby word array literals
|
2010-03-15 21:47:40 -07:00 |
|
Jeremy Ashkenas
|
a4bd8dc623
|
removing outdated arguments tests
|
2010-03-15 21:45:37 -07:00 |
|
Jeremy Ashkenas
|
73074daa07
|
removing arguments-to-array-conversion from coffee
|
2010-03-15 20:46:14 -07:00 |
|
Jeremy Ashkenas
|
75ffb9dc84
|
stop mixing in helpers (t(ticket #250) -- with a test
|
2010-03-14 14:48:43 -07:00 |
|
gfxmonk
|
3c3e7f666b
|
added another "invalid break" example, with code not on the top-level
|
2010-03-14 13:02:36 +11:00 |
|
gfxmonk
|
89dfa1fd7a
|
added code to illustrate an issue with break statements
|
2010-03-14 13:02:35 +11:00 |
|
gfxmonk
|
1da00f0ee3
|
added a test case for broken "break" statement
|
2010-03-14 11:35:56 +11:00 |
|
matehat
|
709f17c278
|
Added an extension on node's 'require' module so it can import .coffee module and added some tests to make sure it works.
|
2010-03-12 14:22:01 -05:00 |
|