Commit Graph

  • a278d8f018 adding an extra pair of braces to the code produced by object comprehensions, so as to squeak by in JSLint's good graces Jeremy Ashkenas 2010-02-18 20:22:53 -05:00
  • d4a180c413 carefully categorizing JS keywords from JS reserved words from Coffee keywords, so that we can throw syntax errors at compile time if JS keywords are getting assigned to. Jeremy Ashkenas 2010-02-18 20:09:41 -05:00
  • 28a8c05513 light refactor for repl.coffee Jeremy Ashkenas 2010-02-17 23:51:43 -05:00
  • 879b3d76bd light refactors to scope.coffee Jeremy Ashkenas 2010-02-17 23:37:39 -05:00
  • 138692183b removing the 'remote' parameter from Scope::find -- it wasn't used anymore Jeremy Ashkenas 2010-02-17 23:26:03 -05:00
  • 95f3e2f79f just namespacing the coffeescript compiler Jeremy Ashkenas 2010-02-17 23:25:17 -05:00
  • dec9950649 Revert "namespacing CoffeeScript in the browser, and sniffing the 'require' function instead of the 'exports' object" Jeremy Ashkenas 2010-02-17 23:22:05 -05:00
  • 2f6b69b580 namespacing CoffeeScript in the browser, and sniffing the 'require' function instead of the 'exports' object Jeremy Ashkenas 2010-02-17 23:15:37 -05:00
  • ff1fd97924 removing traces of Ruby from coffee-script.coffee, redoing narwhal support to use the new compiler (but untested) Jeremy Ashkenas 2010-02-17 22:37:56 -05:00
  • 87e60dccf0 starting to cache fancy switch values -- fixing issue #171 Jeremy Ashkenas 2010-02-17 21:23:59 -05:00
  • 8ff977dc65 making 'no such task' errors a little nicer Jeremy Ashkenas 2010-02-17 20:37:30 -05:00
  • fbfa12c733 moving 'throw' to a slightly higher level of precedence Jeremy Ashkenas 2010-02-17 19:35:34 -05:00
  • 6a45d25777 adding a test for parenthesized throws Jeremy Ashkenas 2010-02-17 19:29:37 -05:00
  • 2b5d596e10 allowing parenthetical nodes to wrap statements without necessarily expression-izing them -- tests are passing ... we'll see how this works in practice. Jeremy Ashkenas 2010-02-17 19:19:51 -05:00
  • e2a71d3c2c removing the '--' from /usr/bin/env node, until we can find a workaround for linux. Jeremy Ashkenas 2010-02-17 19:05:22 -05:00
  • 807e0b479d add a note about installing Node.js first Jeremy Ashkenas 2010-02-17 10:29:13 -05:00
  • dfa63839bb Updating fs module to the latest Node.js -- that's fs.readFile, not fs.cat, with string flags for fs.open Jeremy Ashkenas 2010-02-17 08:51:27 -05:00
  • 0490cb2920 added experimental (but working) method to install CoffeeScript: 'sudo bin/cake install' -- once you've done that, you can take cake and coffee out of their bin/ Jeremy Ashkenas 2010-02-17 01:24:02 -05:00
  • 2d0ad73af8 reorganizing lib/coffee_script to plain ol' lib Jeremy Ashkenas 2010-02-17 00:55:56 -05:00
  • 5a81fcd42e we don't need relative require's because the paths are set up correctly -- removing the unused runner.coffee script Jeremy Ashkenas 2010-02-17 00:50:08 -05:00
  • 6446e0004c The Great Purge. Removing the Ruby compiler, and all of its accoutrements. bin/coffee is now CoffeeScript-in-CoffeeScript Jeremy Ashkenas 2010-02-17 00:33:55 -05:00
  • edf5f4947e removing all tasks from the Rakefile except for 'doc' ... we might need to keep that around for a while Jeremy Ashkenas 2010-02-17 00:26:03 -05:00
  • b674163a40 adding build:ultraviolet and build:underscore tasks to the Cakefile Jeremy Ashkenas 2010-02-17 00:22:06 -05:00
  • 9f2badb3e9 got a really nice --watch flag for bin/node_coffee going, thanks to Node.js' process.watchFile. Can be used with --print, --lint, --tokens, --run, or whatever your needs may be Jeremy Ashkenas 2010-02-16 23:59:32 -05:00
  • 0610e20a3c fixing the extends keyword when the expressions are complex, and should only be run once -- not that it's good style -- ticket #143 Jeremy Ashkenas 2010-02-16 23:23:43 -05:00
  • bedc005d67 Adding a CoffeeScript equivalent to Rake/Make/Jake (Cake, naturally), and implementing all of our build and test tasks in the Cakefile. Run bin/cake to see the tasks. Jeremy Ashkenas 2010-02-16 20:42:10 -05:00
  • a8a46257ae finished converting the test suite, to run it, do: bin/node_coffee -r tasks.coffee -- test Jeremy Ashkenas 2010-02-16 19:45:25 -05:00
  • b41afe79b4 removed ruby tests, and started the process of converting the CoffeeScript tests over to use Node's assert() module Jeremy Ashkenas 2010-02-16 19:38:52 -05:00
  • 448ed36cd2 got a build script for rebuilding the compiler, too Jeremy Ashkenas 2010-02-16 19:17:57 -05:00
  • c4d19cd1fa removing underscore.js from lib, and from the docs page Jeremy Ashkenas 2010-02-16 18:39:31 -05:00
  • 495ca64c46 removing underscore as a dependency for nodes.coffee -- let's be minimal Jeremy Ashkenas 2010-02-16 18:38:03 -05:00
  • 0f2cf552e9 using node's process.compile for better filename reporting on errors Jeremy Ashkenas 2010-02-16 18:16:58 -05:00
  • f6a1f16146 Merge branch 'master' of git://github.com/olsonjeffery/coffee-script Jeremy Ashkenas 2010-02-16 18:06:29 -05:00
  • db6bc0ba02 Implementing sethaurus' suggestion for better temp variable names -- getting rid of the numbers. Jeremy Ashkenas 2010-02-16 18:00:40 -05:00
  • e4bb6c91e7 adding the list of javascript reserved words as syntax errors in CoffeeScript, so that no one uses them accidentally. Jeremy Ashkenas 2010-02-16 17:41:38 -05:00
  • 561a02c35f updating rewrite rules for jots multiline function case Jeremy Ashkenas 2010-02-16 14:56:17 -05:00
  • 51e80484e2 fixing an overzealous access in the rewriter Jeremy Ashkenas 2010-02-16 10:12:40 -05:00
  • 79fa4723ab use a temp var for range expansion, instead of 'i' Jeremy Ashkenas 2010-02-16 08:58:29 -05:00
  • a3c8c0b492 allowing keywords as identifiers, when used as identifiers, because we've got more keywords than JavaScript does. Jeremy Ashkenas 2010-02-16 08:43:58 -05:00
  • 2f389f1d51 beginnings of a build script Jeremy Ashkenas 2010-02-16 01:04:48 -05:00
  • 85e5dffad5 adding updated coffee.vim syntax file Jeffery Olson 2010-02-09 05:20:23 -08:00
  • fa63288f52 fixed the while-loop-condition-with-implicit-function-call bug Jeremy Ashkenas 2010-02-15 23:05:54 -05:00
  • 4ea8be8e0b switched from alphabetical __a __b temporary variables, to numeric _1, _2, which will be shorter in most cases Jeremy Ashkenas 2010-02-15 21:55:57 -05:00
  • 48c501a7a2 print_tokens should acutally, y'know, print Jeremy Ashkenas 2010-02-15 20:46:36 -05:00
  • 63c2b2bc64 adding paren wrappers for property accesses directly on object literals Jeremy Ashkenas 2010-02-15 19:13:08 -05:00
  • 639be2ff09 updating for Node.js' change from 'posix' to 'fs' Jeremy Ashkenas 2010-02-15 19:08:14 -05:00
  • 8b1b3ea402 updating docs with #coffeescript channel Jeremy Ashkenas 2010-02-15 18:58:27 -05:00
  • 9c3040b704 moving print_tokens into the actual coffee-script module, so we can use it separately from the command-line Jeremy Ashkenas 2010-02-15 18:09:01 -05:00
  • e7291f57ba fixing allowing empty functions like () -> Jeremy Ashkenas 2010-02-15 18:03:00 -05:00
  • 3f6eceac77 whoops, screwed up the definition order in the inheritance example Jeremy Ashkenas 2010-02-15 13:55:28 -05:00
  • ba7a454f92 adding a note to the docs about colon/equals equality Jeremy Ashkenas 2010-02-15 13:43:35 -05:00
  • 3092d74a08 updating the readme with a warning about the self-compiler Jeremy Ashkenas 2010-02-14 23:40:18 -05:00
  • ff8e0c9751 added hugs' webserver example Jeremy Ashkenas 2010-02-14 23:20:53 -05:00
  • 3e518e3cf9 fixing long-flag-with-optional-part in optparse.coffee, and hiding bin/node_coffee --watch until we implement it Jeremy Ashkenas 2010-02-14 20:50:45 -05:00
  • 7667e16732 implementing grayrest's suggested cleanup for object comprehensions Jeremy Ashkenas 2010-02-14 17:35:14 -05:00
  • e110042275 updated the rewriter to use @prop instead of this.prop -- compiled JS doesn't change Jeremy Ashkenas 2010-02-14 16:09:11 -05:00
  • 06677b0545 update the highlighted underscore to 0.5.8 Jeremy Ashkenas 2010-02-14 16:04:10 -05:00
  • 20d105ba4e rename the repl id to try_coffe Jeremy Ashkenas 2010-02-14 15:41:08 -05:00
  • e77f4f61aa removing the vendored optparse in favor of a pure-coffeescript optparse library Jeremy Ashkenas 2010-02-14 15:16:33 -05:00
  • 9de729e825 enabling the --eval option for the self-compiler Jeremy Ashkenas 2010-02-13 23:27:13 -05:00
  • c39c2e3599 that's max-height Jeremy Ashkenas 2010-02-13 19:14:28 -05:00
  • ecfa212189 updating Jison Jeremy Ashkenas 2010-02-13 18:19:59 -05:00
  • 97fd126a7f the improved error messages are still-to-be-improved Jeremy Ashkenas 2010-02-13 16:28:07 -05:00
  • 844c756940 working 'Try CoffeeScript' in the docs Jeremy Ashkenas 2010-02-13 16:23:03 -05:00
  • a90bf75395 got coffeescript compiling in the browser Jeremy Ashkenas 2010-02-13 15:25:04 -05:00
  • 79bb0da153 add a -- to let us parse our own flags Jeremy Ashkenas 2010-02-13 10:45:05 -05:00
  • c88b1f6a15 got the CoffeeScript-in-CoffeeScript REPL running, and boy is she fast Jeremy Ashkenas 2010-02-13 10:27:18 -05:00
  • b224d58a36 don't make the command-line so OOP-y -- it's just a script Jeremy Ashkenas 2010-02-13 10:16:28 -05:00
  • 7d348b5eae display the usage message when called without arguments Jeremy Ashkenas 2010-02-13 10:07:59 -05:00
  • 02ac3edebf Nicer-looking --tokenize, more in line with what Ruby's doing Jeremy Ashkenas 2010-02-13 09:59:13 -05:00
  • 4bad3e0f4f nicer --tree printing, with values inlines to the right Jeremy Ashkenas 2010-02-13 09:51:52 -05:00
  • 8147ef554a after correctly recording objectnode's children, bin/node_coffee --tree is working pretty nicely Jeremy Ashkenas 2010-02-13 09:46:07 -05:00
  • 785c4fb5a0 recording else_body as a child of IfNode, when added after the face Jeremy Ashkenas 2010-02-13 09:44:12 -05:00
  • 13b2dc8d31 subtle bug in the order of the rewriter rules was causing some if/else chains to get confused by implicit indentation Jeremy Ashkenas 2010-02-13 09:39:25 -05:00
  • a62923ff97 use Underscore's flatten -- start to make a nicer tree printer Jeremy Ashkenas 2010-02-13 09:13:50 -05:00
  • dd6be80fca Use _.extend instead of the hand-rolled merge Jeremy Ashkenas 2010-02-13 08:50:29 -05:00
  • 8c077f0f65 using underscore's clone() for code generation Jeremy Ashkenas 2010-02-13 02:32:17 -05:00
  • 2c4c4cc93e using Underscore's compact in the code generation, insstead of our home-rolled one. Jeremy Ashkenas 2010-02-13 02:30:47 -05:00
  • 1ab3b183a8 Using underscore for an any() function. Jeremy Ashkenas 2010-02-13 02:29:37 -05:00
  • e6a53bd852 fixing the lexer for indented files Jeremy Ashkenas 2010-02-13 02:16:31 -05:00
  • b983b3fcdc moving Underscore.coffee from /examples to /src Jeremy Ashkenas 2010-02-13 02:05:00 -05:00
  • 89cac4071e updating underscore.coffee to 0.5.8 Jeremy Ashkenas 2010-02-13 02:03:48 -05:00
  • 506ea8aa52 adding an if/else/chain test Jeremy Ashkenas 2010-02-13 02:00:39 -05:00
  • b965fcf32d The moment of truth: CoffeeScript has now compiled itself ten times over. Jeremy Ashkenas 2010-02-13 01:13:08 -05:00
  • 126f6c2d88 use parseInt to make octal numbers to keep JSLint happy Jeremy Ashkenas 2010-02-13 01:04:53 -05:00
  • 3dc456572b finally, think we have this if/else/if/else/else thing licke Jeremy Ashkenas 2010-02-13 01:02:10 -05:00
  • 0f26072ad0 alright, really fixing the comments this time Jeremy Ashkenas 2010-02-13 00:28:16 -05:00
  • dc9cec2611 fixing object/comment printing Jeremy Ashkenas 2010-02-13 00:24:26 -05:00
  • c9aeae757b pulling the lexer and rewriter updates without the grammar change Jeremy Ashkenas 2010-02-13 00:15:34 -05:00
  • 094c2682bd Revert "one more bit to pass -- futzing with the if/else chains" Jeremy Ashkenas 2010-02-13 00:11:14 -05:00
  • 066ee52615 one more bit to pass -- futzing with the if/else chains Jeremy Ashkenas 2010-02-12 23:35:03 -05:00
  • ee1c9b284a typo Jeremy Ashkenas 2010-02-12 23:10:51 -05:00
  • d9fba94983 added coffee --lint to the self-compiler's resume Jeremy Ashkenas 2010-02-12 23:09:57 -05:00
  • e02bedcf82 adding the ability to write out compiled coffeescript to the command line Jeremy Ashkenas 2010-02-12 22:59:21 -05:00
  • 1552470413 Happy Birthday, CoffeeScript-in-CoffeeScript, you just passed the entire test suite. Jeremy Ashkenas 2010-02-12 22:24:57 -05:00
  • e2f3c2259b fix prototype_access lexing Jeremy Ashkenas 2010-02-12 22:21:22 -05:00
  • 249bd99656 fixing if/else rules Jeremy Ashkenas 2010-02-12 22:16:26 -05:00
  • b36196286a safer lexing for ruby, too Jeremy Ashkenas 2010-02-12 21:06:00 -05:00
  • b21780b738 safer lexing at the start of the files Jeremy Ashkenas 2010-02-12 21:04:33 -05:00
  • 207ec81821 waypoint ... somethings still a little off with the parser Jeremy Ashkenas 2010-02-12 19:45:20 -05:00