Jeremy Ashkenas
485346f0e5
CoffeeScript 0.6.2
2010-05-15 01:18:05 -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
f84eb9ed47
fixing heredoc indentation from herecomment tweaks
2010-05-14 21:50:17 -04:00
Jeremy Ashkenas
8136c5f3de
making regexes stricter about their flags.
2010-05-14 09:14:41 -04:00
Jeremy Ashkenas
a5db69e1af
better indentation handling for far-left heredocs and herecomments
2010-05-12 21:47:31 -04:00
Jeremy Ashkenas
8aceef20e1
Adding initial implementation of here-comments (block comments) Issue #368
2010-05-12 20:56:44 -04:00
gfxmonk
3324b03a5d
Merge remote branch 'upstream/master'
...
Conflicts:
src/nodes.coffee
2010-05-10 21:09:00 +10:00
Jeremy Ashkenas
be72120311
further minor cleanup to varargs
2010-05-08 12:20:14 -04: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
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
Jeremy Ashkenas
adbcd320b2
adding until loops as the inverse of while loops
2010-04-28 22:08:00 -04:00
Jeremy Ashkenas
502abade7c
rewriting the compiler using 'unless' blocks where appropriate.
2010-04-27 19:38:24 -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
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
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
noonat
2351948291
Renamed Lexer.tag() argument to new_tag, due to Rhino scope confusion
2010-04-05 22:58:56 -07:00
Chris Lloyd
19ed63129e
Interpolated strings are expressions.
2010-04-04 17:05:52 +10:00
Jeremy Ashkenas
f99b5ad463
Merging Tesco's invoking-this-fix
2010-04-03 09:58:45 -04:00
Tim Jones
8fc631269b
Added a rule to prevent invoking THIS.
2010-04-03 14:14:16 +13:00
Tim Jones
a1975583a7
Added THIS to CALLABLE.
2010-04-03 13:58:21 +13:00
Jeremy Ashkenas
1e1146d61d
more utility simplifications
2010-03-30 19:17:40 -04:00
Jeremy Ashkenas
832e1d8cb8
Utilities doesn't need to be a class, and removing __utilities.keys
2010-03-30 19:00:59 -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
Jeremy Ashkenas
326656245a
using the new static properties of class definitions in the CoffeeScript compiler -- it's hardly used.
2010-03-29 21:49:20 -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
ecd1c77f48
fixing explicit returns of comprehensions (and probably other things as well)
2010-03-25 18:51:24 -04:00
Jeremy Ashkenas
590c069158
CoffeeScript 0.5.6
2010-03-23 00:18:50 -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
162f6b9d5c
one step at a time
2010-03-21 22:05:49 -04:00
Jeremy Ashkenas
acd9be3863
one step further
2010-03-21 21:46:06 -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
a2778bf06d
resolving issues with comments in the middle of unfinished single-line expressions.
2010-03-20 00:58:25 -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
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
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
2f97d0d9b1
merging matehat's flexible splats (at any position within argument lists)
2010-03-17 21:15:54 -04:00
Jeremy Ashkenas
d880b8b8f2
adding interpolation to heredocs, using the same rules as for strings
2010-03-17 20:47:27 -04:00
Jeremy Ashkenas
70cfc9500e
pushing docs to the site
2010-03-16 23:18:54 -04:00