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
Jeremy Ashkenas
a5db69e1af
better indentation handling for far-left heredocs and herecomments
2010-05-12 21:47:31 -04:00
Jeremy Ashkenas
6222ed622f
forcing spaces for implicit calls ... making '@ name' a call instead of an access. Ticket #353
2010-05-04 23:44:54 -04:00
Jeremy Ashkenas
5e5c9df5c4
removing holmsand's cleanup
2010-05-01 08:40:02 -04:00
Tim Jones
3b264c9572
Added a small part to the rewriter to allow a better two-function call.
2010-05-01 14:04:57 +12:00
Dan Holmsand
144c096ae6
Remove unused variable index_var from for loops
2010-04-30 09:48:30 +02:00
Jeremy Ashkenas
adbcd320b2
adding until loops as the inverse of while loops
2010-04-28 22:08:00 -04:00
Jeremy Ashkenas
2d1abd099d
rewriting the Lexer, CommandLine, Nodes, and Rewriter to take advantage of the new DRY object pattern matching.
2010-04-25 22:29:43 -04:00
Jeremy Ashkenas
01b4393fa7
fixing Issue #328 , parse error with indents and comments (StanAngeloff)
2010-04-21 22:26:45 -04:00
Jeremy Ashkenas
1cddb2aa88
Redoing Rewriter#add_implicit_parentheses to be more robust.
2010-04-20 01:32:12 -04:00
Jeremy Ashkenas
aac9679282
merging in gfodor's excellent Rewriter patch.
2010-04-19 23:18:39 -04:00
Jeremy Ashkenas
df97effb9c
fixing implicit-call-in-function-in-parens bug.
2010-04-10 18:56:46 -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
1c628e7883
fixing parens-around-implicit-function-with-multiline-chained-chaser bug
2010-04-01 23:38:20 -04:00
Jeremy Ashkenas
4a8c2e8a13
more refactors to utilities ... removing dependencies and the namespacing
2010-03-30 19:27:38 -04:00
Jeremy Ashkenas
4936211a9c
modified shorter imlementation of bind
2010-03-30 18:49:55 -04:00
Jeremy Ashkenas
f0d731009f
merged matehat's utility branch, arraySlice -> slice, removed dead dependency...
2010-03-30 18:27:53 -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
27fb3763b4
A set of improvements on previous code
2010-03-30 16:14:07 -04:00
matehat
da43c70488
Merged in StanAngeloff excellent slice branch, applying recent factoring of utility functions
2010-03-30 15:43:30 -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
177ec92c39
adding class methods to class definition syntax, using '@'
2010-03-29 21:43:12 -04:00
Jeremy Ashkenas
c19183118e
removing a case from Rewriter#add_implicit_parentheses that apparently never happens...
2010-03-29 20:52:22 -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
Tim Jones
7b9a8998cf
Addressing some assignment issues.
2010-03-29 06:06:16 +13:00
Jeremy Ashkenas
7de5253318
removing unused reserved variable 'source var' from range comprehensions
2010-03-27 16:04:47 -04:00
Jeremy Ashkenas
590c069158
CoffeeScript 0.5.6
2010-03-23 00:18:50 -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
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
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
Jeremy Ashkenas
70cfc9500e
pushing docs to the site
2010-03-16 23:18:54 -04:00
Jeremy Ashkenas
391135b1a5
fixing the relative path to 'grammar'
2010-03-16 19:36:08 -04: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
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
Jeremy Ashkenas
b306d40bf1
we don't need relative requires for the language
2010-03-14 13:48:58 -07:00
Jeremy Ashkenas
1f9bb6a1c4
fixing broken multi-line optional-paren blocks
2010-03-10 09:28:00 -05:00
Jeremy Ashkenas
3d14d362a8
first draft of CoffeeScript language extensions.
2010-03-09 23:04:16 -05:00
Jeremy Ashkenas
472e027463
fixing the nested-implicit-parens-on-a-single-line
2010-03-09 21:54:44 -05:00
Jeremy Ashkenas
b297510d2b
big refactor -- pulled all helper functions into helpers.coffee to facilitate sharing.
2010-03-09 21:24:30 -05:00
Jeremy Ashkenas
121f01c06f
merged stan's interpolation_3, a couple of tweaks
2010-03-08 19:43:12 -05:00
Jeremy Ashkenas
a4f7a5e248
documenting and cleaning up the Rewriter
2010-03-07 14:41:52 -05:00
Jeremy Ashkenas
453b43992d
fixing line numbers in errors printed prior to parsing
2010-03-06 16:42:40 -05:00
Jeremy Ashkenas
e977967eb5
implementing the CoffeeScript compiler using interpolation where appropriate.
2010-03-06 13:59:11 -05:00