Jeremy Ashkenas
1c7d51a2c4
fixing issue #485 , unary minus following an existential operator.
2010-07-10 11:27:43 -04:00
Jeremy Ashkenas
358edfb21f
fixing return node squashing the possiblity of a ternary, when there should be one. Issue #475
2010-07-06 23:04:35 -04:00
Jeremy Ashkenas
e281133f12
fixing empty catch clauses ... Issue #470
2010-07-04 12:50:04 -04:00
Jeremy Ashkenas
77a75ed365
adding passed-through block comments back to the grammar/lexer/rewriter/nodes ... thanks, Trevor Burnham.
2010-07-01 21:26:33 -04:00
Jeremy Ashkenas
5ca5a504a4
allowing empty bodies in try blocks and in catch blocks
2010-06-30 20:53:09 -04:00
Jeremy Ashkenas
7d79d73b58
allowing paren-less instance creation, a la 'new Class'
2010-06-29 21:03:50 -04:00
Jeremy Ashkenas
3881324007
cleaning up the grammar rule for Super
2010-06-27 16:50:31 -04:00
Jeremy Ashkenas
ec570c46bf
Big commit. First draft of stripping comments from generated JS output. Issue #41
2010-06-27 12:59:54 -04:00
Jeremy Ashkenas
8eedfe4bc6
slight simplification of the if-else grammar rules
2010-06-27 11:46:30 -04:00
Jeremy Ashkenas
f7345ffaac
removing extensions from CoffeeScript
2010-06-26 13:36:31 -04:00
Jeremy Ashkenas
0fcfb80be4
switching 'a in b' to 'a of b', and adding an array presence check for 'a in b'.
2010-06-21 23:51:12 -04:00
Jeremy Ashkenas
38a9b7166b
Adding TrevorBurnham's suggestion for 'a not in b'
2010-06-21 22:25:28 -04:00
Jeremy Ashkenas
e14f4c5db1
First draft of switching the CoffeeScript Compiler over to camelCase. Pour one on the ground for underscores...
2010-06-12 19:05:13 -04:00
Jeremy Ashkenas
969740a263
slight simplification to if/else in the grammar.
2010-06-12 13:53:11 -04:00
Jeremy Ashkenas
0222d90fa3
adding a 'loop' keyword to CoffeeScript. Takes an expression or a block. Runs it until you break or return out.
2010-06-12 12:15:53 -04:00
Jeremy Ashkenas
c2d1ae06c5
removing the <- bind operator from CoffeeScript...
2010-06-12 11:00:56 -04:00
Jeremy Ashkenas
676e893c14
reworking parser for more permissive non-comma-separated array elements.
2010-06-09 00:37:23 -04:00
Jeremy Ashkenas
45f442bd73
allowing Klass::['dynamic-property'] syntax. Issue #392
2010-05-31 22:32:43 -04:00
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
8aceef20e1
Adding initial implementation of here-comments (block comments) Issue #368
2010-05-12 20:56:44 -04:00
Jeremy Ashkenas
7e3c71ed19
Allowing more flexible linebreaks/indentation within object literals.
2010-05-12 18:28:40 -04:00
Jeremy Ashkenas
cd6ee373ff
enabling condition-less switches.
2010-05-10 22:57:51 -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
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
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
b746c9018e
adding 'unless' blocks
2010-04-27 19:35:15 -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
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
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
49824ce1a6
removing yytext mentions for real this time.
2010-04-21 23:21:48 -04:00
Jeremy Ashkenas
065bf54094
generated closures should only call() or apply() when necessary.
2010-04-10 14:40:05 -04:00
Tim Jones
de955dacc4
Added Statement to the grammar.
2010-04-06 02:26:23 +12:00
Chris Lloyd
19ed63129e
Interpolated strings are expressions.
2010-04-04 17:05:52 +10:00
Tim Jones
89debc87b2
Removing {@prop: value} from the grammar.
2010-04-04 04:18:29 +12:00
Jeremy Ashkenas
572aa4e98f
reverting the grammar to the pre-slice notation.
2010-03-30 20:11:40 -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
Stan Angeloff
15217c705e
Allowing for negative indices in slice literals.
2010-03-30 14:30:15 -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
Tim Jones
6e0e0767f9
Removed unprocessed values on a for loop from the grammar.
2010-03-29 07:32:01 +13:00
Tim Jones
6df50399a9
Restricted class and extends values to simple assignments.
2010-03-29 06:14:35 +13: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