Tim Jones
0b3bb66708
Added safe soaking on non-existent variables.
2010-05-05 21:58:48 +12:00
Jeremy Ashkenas
d0d0fa4d10
disallowing regex literals as implicit calls immediatly after ']', a rare case, I hope. Ticket #358
2010-05-04 23:50:22 -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
1a03e98057
making 'while' and 'until' have the same associativity and precedence as 'for', #356
2010-05-04 23:37:03 -04:00
Jeremy Ashkenas
d64b8fd9d8
merged in Trevor Burnham's recursive coffee compilation, with some adjustments...
2010-05-04 23:22:28 -04:00
Jeremy Ashkenas
c051daee2f
Merge commit 'TrevorBurnham/master'
2010-05-04 23:01:15 -04:00
Tim Jones
ae70d10996
Removing obsolete delete calls.
2010-05-03 21:17:30 -04:00
Tim Jones
52e6399e02
Added missing or to IndexNode.
2010-05-03 21:17:23 -04:00
Tim Jones
ac05f62f2f
Wrapping all soaked chains that are involved in operations.
2010-05-03 21:17:16 -04:00
Tim Jones
4d935efd09
Stop anonymous supers.
2010-05-03 21:16:50 -04:00
Trevor Burnham
fa8cc7976a
Added recursive compilation and monitoring option to coffee command
2010-05-03 17:38:59 -04:00
gfxmonk
c8e0f8b149
Cleaned up IfNodes
...
- renamed rewrite_condition() to switches_over(),
and @switcher to @switch_subject
- removed unused else_body constructor parameter, as well
as unnecessary push() method
- ensure both @body and @else_body are always Expressions
(previously they could be either Expressions or IfNode)
2010-05-02 00:39:34 +10: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
17ba44056e
changing 'filter' to 'guard' to get around Express' clobbering of Object.prototype.
2010-04-28 21:46:47 -04:00
Jeremy Ashkenas
502abade7c
rewriting the compiler using 'unless' blocks where appropriate.
2010-04-27 19:38:24 -04:00
Jeremy Ashkenas
b746c9018e
adding 'unless' blocks
2010-04-27 19:35:15 -04:00
Jeremy Ashkenas
92af641827
no newline on no_such_task for Cake
2010-04-27 07:59:19 -04:00
Jeremy Ashkenas
b5606a247d
adding pattern matching for comprehensions.
2010-04-26 23:46:35 -04:00
Jeremy Ashkenas
d62baf5a5d
Merge branch 'for_destructuring' of git://github.com/StanAngeloff/coffee-script
2010-04-26 23:34:07 -04:00
Stan Angeloff
76f9596f22
Cleaning up.
2010-04-26 21:54:31 +03:00
Stan Angeloff
2a3a713811
Allowing pattern matching within for..loops
2010-04-26 21:35:35 +03:00
Tim Jones
95367a4a63
Fixing silly mistake with the comments.
2010-04-26 16:00:12 +12:00
Tim Jones
8950c3c4c8
Fixing invalid pattern matching and object creation.
2010-04-26 15:54:47 +12: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
a894db35fd
Got the DRY object pattern matching style working properly, from Harmony. {name, age}: person now works correctly.
2010-04-25 22:21:53 -04:00
Jeremy Ashkenas
328a14014c
eliminating the IndentedAssignList nonterminal.
2010-04-25 21:22:29 -04:00
Jeremy Ashkenas
315a2c63fa
simplifying the grammar by replacing all of our trailing comma rules with an OptComma nonterminal.
2010-04-25 21:17:46 -04:00
Jeremy Ashkenas
ca4ea7649d
Throwing an error when pattern matching has a non-identifier on the left-hand side.
2010-04-25 11:22:15 -04:00
Jeremy Ashkenas
08c877ec7b
Fixing string keys in pattern matching on objects (ticket 325)
2010-04-25 11:07:09 -04:00
Jeremy Ashkenas
1438cecfad
Fixing splats-with-super()-in-classes, an oversight.
2010-04-24 15:57:15 -04:00
Jeremy Ashkenas
49824ce1a6
removing yytext mentions for real this time.
2010-04-21 23:21:48 -04:00
Jeremy Ashkenas
72e6e828f1
new version of Jison vendored ... rebuild the grammar, tests pass.
2010-04-21 22:52:20 -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
fb4d4a609b
making bin/cake install add CoffeeScript as a Node.js library, and creating an index.js file for the top-level inclusion.
2010-04-20 20:20:38 -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
0d860516ac
fixing non-spaced function application.
2010-04-13 09:05:55 -04:00
Jeremy Ashkenas
4ced1d65b4
allowing 'debugger' ... it should never have been a reserved word.
2010-04-12 21:23:01 -04:00
Jeremy Ashkenas
92540d5e85
CoffeeScript 0.6.1, for Node.js v0.1.90
2010-04-12 21:20:00 -04:00
Jeremy Ashkenas
835ecac8db
simplifying some unecessary interpolated expressions into interpolated values.
2010-04-11 16:57:53 -04:00
Jeremy Ashkenas
2e842f0146
merging Stan's recursive tokenizing fix for interpolations.
2010-04-11 09:26:21 -04:00
Stan Angeloff
17e177405a
FIXES #309 : Optional parens and interpolation.
2010-04-11 12:22:54 +03:00
Jeremy Ashkenas
df97effb9c
fixing implicit-call-in-function-in-parens bug.
2010-04-10 18:56:46 -04:00
Jeremy Ashkenas
8317960f81
Battery of patches for compatibility with Node v0.1.90
2010-04-10 18:05:35 -04:00
Jeremy Ashkenas
065bf54094
generated closures should only call() or apply() when necessary.
2010-04-10 14:40:05 -04:00
Jeremy Ashkenas
f36acc27e5
safely preserving the arguments object through generated closure wrappers.
2010-04-10 14:20:32 -04:00
Jeremy Ashkenas
75b260e495
Merge branch 'master' of git://github.com/noonat/coffee-script
2010-04-06 21:08:29 -04:00