Jeremy Ashkenas
7e5db250d3
Merge branch 'master' of git://github.com/StanAngeloff/coffee-script
2010-09-21 08:06:12 -04:00
satyr
e4b7d06f35
removed browser specific hacks from src/* by making "rake browser" provide fake require and exports
2010-09-21 18:37:44 +09:00
satyr
b19c004680
made wrapper function keep current this
2010-09-21 16:53:58 +09:00
Stan Angeloff
992f4192bf
Re-compiling core with new temporary variable names, all tests pass.
2010-09-21 07:55:08 +03:00
Jeremy Ashkenas
a16594ed7b
Merging in Stan's temporary_junk improvements.
2010-09-20 22:13:08 -04:00
Jeremy Ashkenas
f7fce3cd68
tweaking compiled tempvar names to satisfaction.
2010-09-20 21:56:18 -04:00
Stan Angeloff
99a06ce4ea
Updating name for cached length temporary variables to '_length', 'length2', and
...
so on.
2010-09-20 08:42:31 +03:00
Stan Angeloff
31441868e0
Allowing temporary variables to be reused.
2010-09-19 19:34:27 +03:00
Stan Angeloff
d568b56c5e
First attempt at allowing temporary variables to be reused.
2010-09-19 17:47:26 +03:00
Stan Angeloff
3ab0c12bf1
Don't store tempVars as we can get the next available one from scope.
2010-09-19 17:03:45 +03:00
Stan Angeloff
ed74f42323
Refactoring temporary name generation in a separate method, no
...
functional changes.
2010-09-19 16:18:01 +03:00
Stan Angeloff
65fa0411b4
Part of previous commit: updating how temporary variables are generated.
...
We no longer need to store the name of the last generated variable,
instead we store the index.
2010-09-19 15:50:17 +03:00
Stan Angeloff
408833daef
Removing code added during the migration. freeVariable(..) is called with
...
a `type` at all times.
2010-09-19 15:37:26 +03:00
Stan Angeloff
bb35b3e3b2
Re-compiling core with new changes. All tests pass.
2010-09-19 15:29:15 +03:00
Stan Angeloff
fe68261bc2
Added generator for custom free variable types, e.g., '_cache',
...
'_cache2', and so on.
2010-09-19 14:55:19 +03:00
Stan Angeloff
1f2c6c77fd
s/tempVars/tempVars.general/ This should allow us to store more than one
...
category of temporary variables.
2010-09-19 14:36:37 +03:00
Jeremy Ashkenas
fa95f743f3
Fixing Issue #643 . Be a little bit safer about declaring block variables as close to the block scope as possible.
2010-08-24 22:19:53 -04:00
Jeremy Ashkenas
87693d84cb
Updating Underscore to 1.1.0, fixing a hasOwnProperty glitch in Scope, and a double-semicolon bug in ParentheticalNode.
2010-08-21 08:30:22 -04:00
Jeremy Ashkenas
9894eeb8e9
Improving double-parentheses suppression. Issue #587
2010-08-14 17:43:58 -04:00
Jeremy Ashkenas
ca18f1fad6
Core Compiler is JSLint-free again, after removing a couple extra semicolons that snuck in when if statements compiled at the top level.
2010-08-14 11:42:19 -04:00
Jeremy Ashkenas
6c997978bc
CoffeeScript 0.9.1 is on the books.
2010-08-11 00:40:15 -04:00
Jeremy Ashkenas
0ada5a7734
Issue #587 ... Removing the Attempted Removal of Erroneous Double Parens.
2010-08-07 08:13:36 -04:00
Jeremy Ashkenas
9df3e6a538
first step towards requiring #{ ... } interpolation -- removing naked interps from the compiler.
2010-08-07 08:02:16 -04:00
Jeremy Ashkenas
dc1288d319
slightly optimizing return values of AssignNodes. Issue #539
2010-07-24 12:27:11 -07:00
Jeremy Ashkenas
3b6f020f8a
Making the spacing of symbols on function declaration consistent. No-space when single-line. Spaced when block. (StanAngeloff)
2010-07-24 08:31:43 -07:00
Jeremy Ashkenas
6c8eab7af5
michaelficarra's suggestion to make object comprehensions' hasOwnProperty check a continue, instead of a wrapped if.
2010-07-16 22:31:36 -04:00
Jeremy Ashkenas
08ab4abd43
removing obvious redundant parentheses.
2010-06-27 23:55:18 -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
Dan Holmsand
6bc7b56e6e
Make sure variables named e.g. "constructor" are declared with var
2010-06-16 12:54:53 +02: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
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
835ecac8db
simplifying some unecessary interpolated expressions into interpolated values.
2010-04-11 16:57:53 -04:00
Chris Lloyd
19ed63129e
Interpolated strings are expressions.
2010-04-04 17:05:52 +10:00
Jeremy Ashkenas
864275f07e
removing __range, and all the slice behavior it enabled. If you can't do array[-1], then you shouldn't be able to do array[0..-1] -- it's just too inconsistent.
2010-03-30 20:06:44 -04:00
Jeremy Ashkenas
998a7c8cb0
more cleanups, added a utility helper function to the codegen
2010-03-30 19:48:37 -04:00
Jeremy Ashkenas
6d7a04228f
another reshuffle ... removed utilities.coffee entirely.
2010-03-30 19:42:09 -04:00
Jeremy Ashkenas
4a8c2e8a13
more refactors to utilities ... removing dependencies and the namespacing
2010-03-30 19:27:38 -04:00
Jeremy Ashkenas
f3a60edc5d
simplifying the lookup of the top-level scope object
2010-03-30 19:21:14 -04: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
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
1e786d6d8b
Removed unnecessary check
2010-03-30 10:58:21 -04:00
matehat
0557eb9b93
Removed hard-coding of utility object name
2010-03-30 09:08:16 -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
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