Commit Graph

  • 386d3dd307 complete implicit functions, I think these are done. Jeremy Ashkenas 2010-01-26 21:15:56 -05:00
  • e998a81b63 removing block literals in favor of implicit calls Jeremy Ashkenas 2010-01-26 21:05:26 -05:00
  • aa93d3c387 first draft of whitespace-sensitive method calls and indexes. Jeremy Ashkenas 2010-01-26 20:59:52 -05:00
  • ab4a4a5580 make nested implicit indentation just a little bit smarter about outdents and stack levels Jeremy Ashkenas 2010-01-26 14:49:33 -05:00
  • 3775f682de updated textmate highlighter for new function literal syntax Jeremy Ashkenas 2010-01-26 10:54:49 -05:00
  • a9f016e292 trying out new arrows for function literals -> is a function, => is a bound function Jeremy Ashkenas 2010-01-26 10:52:05 -05:00
  • 55df898112 adding bound functions to the list of implicit call activator tokens Jeremy Ashkenas 2010-01-26 10:41:28 -05:00
  • fb7fd53bdf enabling passed functions to fire implicit method calls Jeremy Ashkenas 2010-01-26 02:27:19 -05:00
  • 29e4043f26 tests passing with smarter block syntax with optional parens Jeremy Ashkenas 2010-01-26 02:15:08 -05:00
  • 460b3f6d8e first draft of mandatory parentheses around function definition param lists -- all tests pass Jeremy Ashkenas 2010-01-26 00:40:58 -05:00
  • 63b44a2b03 odd and even were backwards Jeremy Ashkenas 2010-01-25 22:44:36 -05:00
  • 8efcaf6eec moved CoffeeScript.tmbundle to extras and rewrote the installation instructions in plain text Jeremy Ashkenas 2010-01-25 22:22:39 -05:00
  • a732e578ea Merge branch 'master' of git://github.com/olsonjeffery/coffee-script Jeremy Ashkenas 2010-01-25 22:03:12 -05:00
  • d6e206b420 adding line number info to unclosed parens, objects, arrays, and indents Jeremy Ashkenas 2010-01-25 21:07:18 -05:00
  • 91e703052c fixing chained single-line if-elses with a smarter rewriter. Jeremy Ashkenas 2010-01-25 20:52:33 -05:00
  • f393b1c897 adding vim syntax file in a new "extras" folder - also added a VIM-SYNTAX-HOWTO.md readme file Jeffery Olson 2010-01-25 07:38:34 -08:00
  • 2875de5e73 changed the docs for optional parens Jeremy Ashkenas 2010-01-25 00:14:00 -05:00
  • 8d63d269b8 making all postfix forms close out implicit calls, as in Ruby Jeremy Ashkenas 2010-01-24 23:56:27 -05:00
  • a5d39efdd2 converted the tests to use optional parentheses -- lot's of little subtleties to work out Jeremy Ashkenas 2010-01-24 23:40:45 -05:00
  • 70e3a6ef2f first draft of optional parentheses, with a couple tests ... more to follow Jeremy Ashkenas 2010-01-24 22:32:06 -05:00
  • 4b267b401a another poignant example Jeremy Ashkenas 2010-01-24 20:04:28 -05:00
  • e6f010b983 adding more examples to the computer_science folder, and fiddling with operator precedence Jeremy Ashkenas 2010-01-24 18:59:29 -05:00
  • af53a04932 added test for lexical scope sharing through generated closure wrappers, something uncommonly used, but that was a regression Jeremy Ashkenas 2010-01-24 13:39:27 -05:00
  • 817e8deb27 adding soaked method calls, with caching Jeremy Ashkenas 2010-01-24 12:52:15 -05:00
  • d728c3d669 added existence chains with '?.' -- soaks up attempts to access undefined properties, returning 'undefined' Jeremy Ashkenas 2010-01-23 23:30:55 -05:00
  • 9160500e84 removing 'this' rewriting in favor of correctly calling generated closures Jeremy Ashkenas 2010-01-23 21:11:27 -05:00
  • c3ce2ea9b1 added automatic safety closure wrapper for functions declared within for loops. Jeremy Ashkenas 2010-01-23 17:53:07 -05:00
  • 5f94186b40 adding the compiled parser back into the repo (after all that) so that it can be used as the source for the narwhal package Jeremy Ashkenas 2010-01-23 12:44:36 -05:00
  • 791d874058 fixing comments as the last line of a block Jeremy Ashkenas 2010-01-20 20:36:31 -05:00
  • a8ae37a428 fixing bug with multiple linebreaks in heredocs Jeremy Ashkenas 2010-01-19 09:49:23 -05:00
  • b9c09bfa4e doc updates -- widened the code segments for the sake of the JavaScript Jeremy Ashkenas 2010-01-17 18:33:31 -05:00
  • 63c9b5c2f0 CoffeeScript 0.2.6 is on the books 0.2.6 Jeremy Ashkenas 2010-01-17 18:12:59 -05:00
  • 80fbe02fda ignoring the top-down parser that doesn't work Jeremy Ashkenas 2010-01-17 17:41:38 -05:00
  • e514a39dd2 added binary search example -- chapter 6 of beautiful code Jeremy Ashkenas 2010-01-17 16:18:24 -05:00
  • 4a32c58221 added bentley's chapter from beautiful code to the examples/tests -- quicksort runtime analysis Jeremy Ashkenas 2010-01-17 15:58:44 -05:00
  • 4609ad78c2 added the first chapter of beautiful code as a coffeescript example Jeremy Ashkenas 2010-01-17 15:36:46 -05:00
  • 2d90a751f7 edits for clarity Jeremy Ashkenas 2010-01-17 14:55:06 -05:00
  • 8647b54a61 rename compile_double_reference to compile_reference Jeremy Ashkenas 2010-01-17 14:26:00 -05:00
  • 8e1f3c0eca generating multiple calls to the same function should use compile_double_reference to ensure a single evaluation of the call itself. Jeremy Ashkenas 2010-01-17 14:23:41 -05:00
  • c4d0903e6a fixing assignment-in-condition Jeremy Ashkenas 2010-01-17 10:40:59 -05:00
  • e72ef1a61a reverting change Jeremy Ashkenas 2010-01-17 10:28:04 -05:00
  • d7d9cb8d28 only let returns stop an expression from being closure-ified -- breaks and continues may be valid Jeremy Ashkenas 2010-01-17 10:21:24 -05:00
  • f6c8e81ea6 the existential operator can now be used infix as well Jeremy Ashkenas 2010-01-16 23:03:54 -05:00
  • 52539ae7d2 abbreviating the existential operator Jeremy Ashkenas 2010-01-16 22:26:34 -05:00
  • 95b362499f added the conditional existence operator Jeremy Ashkenas 2010-01-16 22:17:55 -05:00
  • 0bc4da2b51 ensure that functions are only called once, when chaining comparators Jeremy Ashkenas 2010-01-16 22:04:08 -05:00
  • 9679fc0b52 removing redundant unary check Jeremy Ashkenas 2010-01-16 16:49:03 -05:00
  • 9cb0564972 added Python's chainable comparisons, like: 10 > 5 > 1 Jeremy Ashkenas 2010-01-16 16:37:49 -05:00
  • c6c0c7d059 simplification of function and prototype naming -- last_assign, immediate_assign, and proto_assign are gone, in favor of 'name' and 'proto' properties on CodeNodes Jeremy Ashkenas 2010-01-16 15:44:07 -05:00
  • 62e946b8ce purely empty functions at the top level should be wrapped in parens, so as not to cause a JS syntax error Jeremy Ashkenas 2010-01-16 15:02:04 -05:00
  • 6c782b7723 fixes for syntax highlighting assignments and regexes Jeremy Ashkenas 2010-01-16 14:28:42 -05:00
  • 9eff443032 arguments no longer is just a find-and-replace -- it'll fix the arguments variable at the top of scope if you use it in a function body Jeremy Ashkenas 2010-01-16 12:52:26 -05:00
  • 8957feedb4 expression closure wrappers are now safer -- they won't be generated if there's a statement_only inside Jeremy Ashkenas 2010-01-16 12:10:31 -05:00
  • 1cd7fa8ebe added children macro to Node, using it so that all nodes now have a 'children' method -- used for safe references to 'this' within closure wrappers Jeremy Ashkenas 2010-01-16 11:24:10 -05:00
  • 701cdb4c13 never try to push a statement_only Jeremy Ashkenas 2010-01-15 19:47:16 -05:00
  • 8dc5da9cc9 adding coffee-haml-filter to the resources section Jeremy Ashkenas 2010-01-14 14:44:03 -05:00
  • 001cc29deb slightly shorter generated code for ==> Jeremy Ashkenas 2010-01-14 08:55:09 -05:00
  • e77e520607 CoffeeScript 0.2.5 is on the books 0.2.5 Jeremy Ashkenas 2010-01-13 23:24:45 -05:00
  • ed8a54995d with splats allowed in destructuring assignment Jeremy Ashkenas 2010-01-13 22:25:58 -05:00
  • 2d206e7b60 pulling out pushes into a pushnode Jeremy Ashkenas 2010-01-13 21:33:46 -05:00
  • bb9fdd3015 while loops can now be used as expressions -- they return an array containing the computed result of each iteration. Jeremy Ashkenas 2010-01-13 21:27:22 -05:00
  • 1e7d638435 adding bound functions, with test Jeremy Ashkenas 2010-01-13 20:59:57 -05:00
  • 0ceca0778c adding when clauses with multiple values Jeremy Ashkenas 2010-01-13 19:56:35 -05:00
  • abd9ab5c71 unified ParamSplatNode and ArgSplatNode into SplatNode Jeremy Ashkenas 2010-01-12 23:49:47 -05:00
  • ea349a1a59 more safety type-checks in nodes.rb Jeremy Ashkenas 2010-01-12 23:26:35 -05:00
  • f0d5db7e66 fixing heredocs to use the left-most indent as the indentation guide -- not just the first line of the heredoc Jeremy Ashkenas 2010-01-12 23:06:12 -05:00
  • 914ba1c244 removing commented-out bit Jeremy Ashkenas 2010-01-12 18:01:12 -05:00
  • 844ea33274 mistaken commit Jeremy Ashkenas 2010-01-12 17:45:06 -05:00
  • 87e04e9952 nicer syntax error messages for newlines and indentation Jeremy Ashkenas 2010-01-12 17:44:37 -05:00
  • 197914bcf7 nicer syntax error messages for newlines and indentation Jeremy Ashkenas 2010-01-12 17:44:03 -05:00
  • 8dfbd1a2a8 using Object.prototype.hasOwnProperty.call instead of obj.hasOwnProperty, with an alias, for Rhino and java objects Jeremy Ashkenas 2010-01-12 17:35:37 -05:00
  • c19647ad33 adding and fixing test for empty strings Jeremy Ashkenas 2010-01-12 08:52:44 -05:00
  • 27f7ef09af allow leading newlines in coffee scripts Jeremy Ashkenas 2010-01-12 08:49:39 -05:00
  • 9a61bbf005 CoffeeScript 0.2.4, with pattern matching and heredocs 0.2.4 Jeremy Ashkenas 2010-01-12 00:09:23 -05:00
  • c8d505e85d heredoc docs Jeremy Ashkenas 2010-01-12 00:00:38 -05:00
  • 477c510345 adding heredocs, with tests Jeremy Ashkenas 2010-01-11 23:53:50 -05:00
  • c3029faca7 documentation for pattern matching Jeremy Ashkenas 2010-01-11 22:55:01 -05:00
  • 186797a745 got compile_pattern_match about as small as its going to get Jeremy Ashkenas 2010-01-11 22:16:23 -05:00
  • d54fa2f2a1 a whole chunk of compile_pattern_match was redundant, axed it -- along with the array/vs/object split Jeremy Ashkenas 2010-01-11 22:12:18 -05:00
  • 5e1e949bf6 a passing test for destructuring assignment (it needs a better name) Jeremy Ashkenas 2010-01-11 22:04:25 -05:00
  • 6c980d8adc first draft of destructuring assignment -- working out the wrinkles -- not sure if we want to do the full spec Jeremy Ashkenas 2010-01-11 21:44:47 -05:00
  • 2f63439bff swapping around the order of variable declaration in array comprehensions, so that it comes out in the proper order: __a, __b, __c Jeremy Ashkenas 2010-01-11 09:16:08 -05:00
  • c7cb308b6d adding note about parens-around-ambiguous-function-defs to the docs Jeremy Ashkenas 2010-01-11 09:09:06 -05:00
  • 9cc7d6af27 little lexer tweak Jeremy Ashkenas 2010-01-11 08:46:50 -05:00
  • cfa357cbc3 CoffeeScript 0.2.3, with 'of', not 'ino' 0.2.3 Jeremy Ashkenas 2010-01-11 00:01:16 -05:00
  • 9d8668f37f added a whole slew of nice Potion examples from the pamphlet -- CoffeeScript stacks up pretty well. Jeremy Ashkenas 2010-01-10 23:27:57 -05:00
  • d1ddeacbe3 more refactors to nodes Jeremy Ashkenas 2010-01-10 22:35:55 -05:00
  • d9d09a9a72 refactoring and commenting nodes.rb Expressions Jeremy Ashkenas 2010-01-10 22:04:38 -05:00
  • a1528f3f19 rebuilt the narwhal interface Jeremy Ashkenas 2010-01-10 20:25:09 -05:00
  • 7d2a955e0a bumping the license to 2010 Jeremy Ashkenas 2010-01-10 17:57:29 -05:00
  • 24408c785a caught a close call bug with object comprehensions and not specifying the value 0.2.2 Jeremy Ashkenas 2010-01-10 17:44:19 -05:00
  • bb5bf7f94f more docs, more tests Jeremy Ashkenas 2010-01-10 17:36:06 -05:00
  • 3e987de4a8 rebuilding underscore.coffee docs, adding a build task -- need to remember to copy over nicer headers Jeremy Ashkenas 2010-01-10 17:23:07 -05:00
  • de74bce2cd more docs for 0.2.2 Jeremy Ashkenas 2010-01-10 17:14:20 -05:00
  • c265b7d5d6 updating comprehension speed test with the new normal comprehensions Jeremy Ashkenas 2010-01-10 16:39:38 -05:00
  • ad18378f7e adding '::' as shorthand for '.prototype.' Jeremy Ashkenas 2010-01-10 16:16:59 -05:00
  • 902febb43a big commit -- adding back object comprehensions, using 'ino', versus 'in' for array comprehensions, fixing bug with dollar signs in identifiers Jeremy Ashkenas 2010-01-10 15:52:23 -05:00
  • 13fc8aea04 removing object comprehensions from CoffeeScript, they were necessitating the generation of too much ugly JS Jeremy Ashkenas 2010-01-10 14:45:44 -05:00
  • 8ea75290b5 better indentation for compile_closure Jeremy Ashkenas 2010-01-10 13:18:44 -05:00
  • 9498ef9fe4 ignoring 'presentation' folder Jeremy Ashkenas 2010-01-10 12:21:06 -05:00