Jeremy Ashkenas
590c069158
CoffeeScript 0.5.6
2010-03-23 00:18:50 -04:00
matehat
74bcd898e7
improving readability a bit
2010-03-22 02:02:04 -04:00
matehat
296808d4d3
Added splats positional flexibility to pattern matching
2010-03-22 01:52:47 -04:00
Jeremy Ashkenas
cbfe7f5822
fix and tests for half assignments... whew.
2010-03-21 23:24:24 -04:00
Jeremy Ashkenas
895cd88761
almost there with half-assignments
2010-03-21 23:06:04 -04:00
Jeremy Ashkenas
f2ea18b0ba
removing AND OR NOT IS ISNT from the grammar
2010-03-21 22:07:46 -04:00
Jeremy Ashkenas
162f6b9d5c
one step at a time
2010-03-21 22:05:49 -04:00
Jeremy Ashkenas
4f8ae3ccbe
one more step
2010-03-21 21:46:53 -04:00
Jeremy Ashkenas
acd9be3863
one step further
2010-03-21 21:46:06 -04:00
Jeremy Ashkenas
ddf18ae34c
nothing much
2010-03-21 21:26:12 -04: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
Jeremy Ashkenas
4ec79732f1
merging gfxmonk's cleanups
2010-03-21 10:11:02 -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
566321d67a
fixing infinite recursion when compiling if statements containing pure_statements
2010-03-20 10:36:06 -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
4ebaa82563
removing the CoffeeScript.run named function from eval'd script scope by making it anonymous
2010-03-19 23:15:42 -04:00
Jeremy Ashkenas
92688c89ef
merging in matehat's nice refactor to splats (in arrays and otherwise)
2010-03-19 22:41:23 -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
b72641693d
fixing doubled semis
2010-03-18 08:45:26 -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
3b22018296
Applied the new splat flexibility to function currying operator
2010-03-18 00:08:34 -04:00
matehat
5be437deb9
Added some inline docs
2010-03-18 00:08:34 -04:00
matehat
8d098194dd
Added the '<-' currying operator, as heavily discussed in #251 , along with tests.
2010-03-18 00:08:34 -04:00
matehat
256525bfa2
Fixed a small bug about flexible splats that occured when the leading array was a literal
2010-03-18 00:08:05 -04:00
Jeremy Ashkenas
79e4f30f69
fixing a bug where the Lexer assumed that values would always be strings.
2010-03-17 22:16:18 -04:00
Jeremy Ashkenas
884637468e
fixing off-by-one error in compile_splat_arguments
2010-03-17 22:07:11 -04:00
Jeremy Ashkenas
6fd7810d89
can't use indexing[] into strings cross-browser, use substr() instead.
2010-03-17 21:41:00 -04:00
Jeremy Ashkenas
2f97d0d9b1
merging matehat's flexible splats (at any position within argument lists)
2010-03-17 21:15:54 -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
fa6f1c2fb1
Fixed a tiny slicing bug
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
70cfc9500e
pushing docs to the site
2010-03-16 23:18:54 -04:00
Jeremy Ashkenas
61b011cc28
fixing trailing whitespace on the final line
2010-03-16 19:57:39 -04:00
Jeremy Ashkenas
391135b1a5
fixing the relative path to 'grammar'
2010-03-16 19:36:08 -04:00
matehat
33f51d76f4
Added the possibility to end an identifier with '::', refering directly to its prototype.
2010-03-16 17:39:36 -04:00
Jeremy Ashkenas
61dee1beba
tweakin'
2010-03-15 23:10:14 -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
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
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
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
c7dd31846d
merging in gfxmonk's fix for reporting line numbers for unclosed { [ ( opening symbols
2010-03-15 22:09:16 -07:00
gfxmonk
e87fa4293d
report line number of opening token if a pair (eg bracket) is left open
2010-03-15 22:07:40 -07:00
gfxmonk
b269884f8d
fixed non-recursive traverse() for CodeNode
2010-03-15 22:03:54 -07:00
Jeremy Ashkenas
73074daa07
removing arguments-to-array-conversion from coffee
2010-03-15 20:46:14 -07:00
Jeremy Ashkenas
119b80d449
removing fiddling with require.paths from CoffeeScript
2010-03-15 20:39:46 -07:00
Jeremy Ashkenas
60b3103314
using granular helper imports, for nicer within.
2010-03-14 14:58:32 -07:00
Jeremy Ashkenas
75ffb9dc84
stop mixing in helpers (t(ticket #250 ) -- with a test
2010-03-14 14:48:43 -07:00