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
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
Jeremy Ashkenas
70cfc9500e
pushing docs to the site
2010-03-16 23:18:54 -04:00
Jeremy Ashkenas
391135b1a5
fixing the relative path to 'grammar'
2010-03-16 19:36:08 -04:00
Jeremy Ashkenas
c7dd31846d
merging in gfxmonk's fix for reporting line numbers for unclosed { [ ( opening symbols
2010-03-15 22:09:16 -07:00
gfxmonk
e87fa4293d
report line number of opening token if a pair (eg bracket) is left open
2010-03-15 22:07:40 -07:00
Jeremy Ashkenas
119b80d449
removing fiddling with require.paths from CoffeeScript
2010-03-15 20:39:46 -07:00
Jeremy Ashkenas
60b3103314
using granular helper imports, for nicer within.
2010-03-14 14:58:32 -07:00
Jeremy Ashkenas
75ffb9dc84
stop mixing in helpers (t(ticket #250 ) -- with a test
2010-03-14 14:48:43 -07:00
Jeremy Ashkenas
b306d40bf1
we don't need relative requires for the language
2010-03-14 13:48:58 -07:00
Jeremy Ashkenas
1f9bb6a1c4
fixing broken multi-line optional-paren blocks
2010-03-10 09:28:00 -05:00
Jeremy Ashkenas
3d14d362a8
first draft of CoffeeScript language extensions.
2010-03-09 23:04:16 -05:00
Jeremy Ashkenas
472e027463
fixing the nested-implicit-parens-on-a-single-line
2010-03-09 21:54:44 -05:00
Jeremy Ashkenas
b297510d2b
big refactor -- pulled all helper functions into helpers.coffee to facilitate sharing.
2010-03-09 21:24:30 -05:00
Jeremy Ashkenas
121f01c06f
merged stan's interpolation_3, a couple of tweaks
2010-03-08 19:43:12 -05:00
Jeremy Ashkenas
a4f7a5e248
documenting and cleaning up the Rewriter
2010-03-07 14:41:52 -05:00
Jeremy Ashkenas
453b43992d
fixing line numbers in errors printed prior to parsing
2010-03-06 16:42:40 -05:00
Jeremy Ashkenas
e977967eb5
implementing the CoffeeScript compiler using interpolation where appropriate.
2010-03-06 13:59:11 -05:00
Jeremy Ashkenas
5fd0972b5d
improvement to comment handling that should ensure that they have no effect on indentation
2010-03-02 19:23:21 -05:00
Jeremy Ashkenas
c219adffd5
removing special rule from rewriter for naked functions in arrays
2010-03-02 00:43:01 -05:00
Jeremy Ashkenas
e02ab76edf
converting the remainder of the CoffeeScript compiler (Rewriter, Scope, Optparse) to use classes
2010-02-27 19:46:45 -05:00
Jeremy Ashkenas
2f658ba925
fixing multiple single-line function forms on the same line
2010-02-27 11:03:43 -05:00
Jeremy Ashkenas
d2d5f649d3
caching the length property lookup for vanilla array comprehensions and rebuilding docs
2010-02-25 23:39:14 -05:00
Jeremy Ashkenas
2a46e13d33
moving print_tokens (the pretty printer) from coffee_script to command_line
2010-02-24 18:56:32 -05:00
Jeremy Ashkenas
10d335ccb1
adding existence soaks for indexed-lookup property accesses: obj?['property']
2010-02-24 00:06:01 -05:00
Jeremy Ashkenas
4d146bacb1
fixing throwing an error string in the Rewriter, when it should have been an Error object
2010-02-23 21:59:29 -05:00
Jeremy Ashkenas
8db0cb9fa5
rebuilding with new for spacing
2010-02-23 21:12:44 -05:00
Jeremy Ashkenas
a278d8f018
adding an extra pair of braces to the code produced by object comprehensions, so as to squeak by in JSLint's good graces
2010-02-18 20:22:53 -05:00
Jeremy Ashkenas
dec9950649
Revert "namespacing CoffeeScript in the browser, and sniffing the 'require' function instead of the 'exports' object"
...
This reverts commit 2f6b69b580
.
2010-02-17 23:22:05 -05:00
Jeremy Ashkenas
2f6b69b580
namespacing CoffeeScript in the browser, and sniffing the 'require' function instead of the 'exports' object
2010-02-17 23:15:37 -05:00
Jeremy Ashkenas
87e60dccf0
starting to cache fancy switch values -- fixing issue #171
2010-02-17 21:23:59 -05:00
Jeremy Ashkenas
2d0ad73af8
reorganizing lib/coffee_script to plain ol' lib
2010-02-17 00:55:56 -05:00