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
59de6b505a
ahh, finally. switched up our Jison configuration to provide better syntax errors. Now you get the unexpected token, instead of the expected one.
2010-06-01 20:21:12 -04:00
Jeremy Ashkenas
45f442bd73
allowing Klass::['dynamic-property'] syntax. Issue #392
2010-05-31 22:32:43 -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
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
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
72e6e828f1
new version of Jison vendored ... rebuild the grammar, tests pass.
2010-04-21 22:52:20 -04:00
Tim Jones
de955dacc4
Added Statement to the grammar.
2010-04-06 02:26:23 +12: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
da43c70488
Merged in StanAngeloff excellent slice branch, applying recent factoring of utility functions
2010-03-30 15:43:30 -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
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
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
f2ea18b0ba
removing AND OR NOT IS ISNT from the grammar
2010-03-21 22:07:46 -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
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
55cac23976
fixing indentation for prefix while nodes
2010-03-10 20:15:12 -05:00
Jeremy Ashkenas
2a47727641
allowing terminator/comment as a block, so that you can have comment-only blocks
2010-03-10 16:18:17 -05:00
Jeremy Ashkenas
54627f6807
CoffeeScript language extensions are now working.
2010-03-09 23:44:29 -05:00
Jeremy Ashkenas
3d14d362a8
first draft of CoffeeScript language extensions.
2010-03-09 23:04:16 -05:00
Zachary Carter
612c238157
Rebuild parser, now with skinnier parse table.
2010-03-07 18:53:23 -05:00
Jeremy Ashkenas
1602e0e823
adding complete documentation for the grammar
2010-03-07 11:41:56 -05:00
Jeremy Ashkenas
3e3b71724d
making equality left-associative so that our chaining works properly with it.
2010-03-06 23:48:06 -05:00