Commit Graph

  • 6224edd6ce Existence checks on functions now supported. Timothy Jones 2010-08-26 07:39:30 +12:00
  • 9598b11c77 Existence functions now parsing. Timothy Jones 2010-08-26 06:31:56 +12:00
  • fa95f743f3 Fixing Issue #643. Be a little bit safer about declaring block variables as close to the block scope as possible. Jeremy Ashkenas 2010-08-24 22:19:53 -04:00
  • e2c46d14f0 CoffeeScript 0.9.2 0.9.2 Jeremy Ashkenas 2010-08-23 22:08:33 -04:00
  • bd3471b3d1 Issue #641. Rename __superClass__ to __super__ Jeremy Ashkenas 2010-08-23 21:19:43 -04:00
  • 1b88d18d61 more tweaks and futzes to block comments. Jeremy Ashkenas 2010-08-23 21:00:47 -04:00
  • b4de17d504 more tweaks to the herecomment regex. Jeremy Ashkenas 2010-08-23 20:33:18 -04:00
  • f90fac0e55 Issue #572. Flexible JavaScript block comments, compatible with JSDoc, YUI-compressor, and Google Closure compiler preservation syntax. Jeremy Ashkenas 2010-08-23 20:27:34 -04:00
  • 9fd92bf884 updating package.json for newer NPM. Jeremy Ashkenas 2010-08-23 11:39:06 -04:00
  • 117204a784 Revert "Issue #619. 'new' operator misbehavior." Jeremy Ashkenas 2010-08-21 19:16:02 -04:00
  • e7834de929 Issue #619. 'new' operator misbehavior. Jeremy Ashkenas 2010-08-21 18:54:24 -04:00
  • d5d5de55ae Fixing the longstanding and important Issue #637. I'm glad this one got got. Jeremy Ashkenas 2010-08-21 12:13:43 -04:00
  • 143c4d5efc Issue #572. Block comments now compile to // for aesthetic reasons. Jeremy Ashkenas 2010-08-21 09:30:25 -04:00
  • 13adc44867 Issue #633. 'not instanceof' Jeremy Ashkenas 2010-08-21 08:56:25 -04:00
  • 87693d84cb Updating Underscore to 1.1.0, fixing a hasOwnProperty glitch in Scope, and a double-semicolon bug in ParentheticalNode. Jeremy Ashkenas 2010-08-21 08:30:22 -04:00
  • 6ed33fcc6d Updating contributors in README. Jeremy Ashkenas 2010-08-20 17:53:45 -04:00
  • 2e59cc4807 Using unbounded ranges in a couple spots in the compiler. Jeremy Ashkenas 2010-08-18 22:08:09 -04:00
  • 4ddd65a4c4 Issue #621. Added the ability to leave the start and end index off of arrays. list[5..] is now valid CoffeeScript, slicing to the end of the array. Jeremy Ashkenas 2010-08-18 21:51:44 -04:00
  • bf6bafa3ac Disallowing Splats outside of ParamLists and ArgLists ... where they belong. This is in anticipation of the next commit... Jeremy Ashkenas 2010-08-18 21:27:10 -04:00
  • 24f1174b16 Adding a test for issue #631. Jeremy Ashkenas 2010-08-18 20:42:23 -04:00
  • 098caa9979 Revert "Fixes Issue #618. Close implicit arguments in the middle of param lists." Jeremy Ashkenas 2010-08-18 20:39:55 -04:00
  • b608d4a5ea Issue #626. Making the isInvertible check a little stricter. Jeremy Ashkenas 2010-08-17 21:46:00 -04:00
  • 4d32c47bee Merge branch 'remote_script' of http://github.com/satyr/coffee-script Jeremy Ashkenas 2010-08-17 21:35:00 -04:00
  • ec54b50c67 allowing empty parens. Jeremy Ashkenas 2010-08-17 21:31:32 -04:00
  • 387c690530 removed noWrap (setTimeout evaluates on global) satyr 2010-08-18 10:29:13 +09:00
  • 536e24b024 Merge branch 'remote_script' of http://github.com/satyr/coffee-script Jeremy Ashkenas 2010-08-17 21:15:41 -04:00
  • 1b05cd81f0 Enabling bound functions as static members of classes... Issue #627 Jeremy Ashkenas 2010-08-17 21:07:36 -04:00
  • db181e2a36 enabled remote scripts in browsers satyr 2010-08-18 09:35:52 +09:00
  • f41ca2e5e8 a touch of safety from trailing catches falling off the end of the rewriter. Jeremy Ashkenas 2010-08-17 20:04:34 -04:00
  • a8c6a641d7 stop supressing left-hand whitespace in newline'd strings. Make 'em more literal. Jeremy Ashkenas 2010-08-16 22:02:37 -04:00
  • 474c372b17 Fixes Issue #618. Close implicit arguments in the middle of param lists. Jeremy Ashkenas 2010-08-16 21:19:34 -04:00
  • 5b9b45814f Fixing Issue #622 with a light refactor to start using a 'tags' property on all nodes. Jeremy Ashkenas 2010-08-16 20:18:42 -04:00
  • 01cd5476a0 '-r' should work with $NODE_PATH as well (where previously it was an absolute/relative path) Stan Angeloff 2010-08-16 17:36:55 +03:00
  • 027b9e9dc3 simplifying generated output for unless/is to (a isnt b) instead of not (a is b). Ticket #617 Jeremy Ashkenas 2010-08-15 15:13:33 -04:00
  • 197f576cab Merged in Stan's patch that allows -r scripts to modify input and output. Jeremy Ashkenas 2010-08-15 08:32:09 -04:00
  • 0b8facc66f Merge branch 'master' of git://github.com/StanAngeloff/coffee-script Jeremy Ashkenas 2010-08-15 08:20:50 -04:00
  • 7a0d95c612 Issue #575. Allowing implicit objects to force implicit calls. Jeremy Ashkenas 2010-08-14 19:56:00 -04:00
  • 975b82f09b Issue #609. Slightly faster implementation of ||= and &&= Jeremy Ashkenas 2010-08-14 18:02:07 -04:00
  • f496cc229b Further reducing amount of redundant parentheses. Jeremy Ashkenas 2010-08-14 17:52:37 -04:00
  • 9894eeb8e9 Improving double-parentheses suppression. Issue #587 Jeremy Ashkenas 2010-08-14 17:25:29 -04:00
  • 129e950c59 Fixing naked chained existential checks -- the associativity recently got reversed. Jeremy Ashkenas 2010-08-14 16:33:20 -04:00
  • c90a75ebc5 Fixing first part of #614 -- improperly cached existential operator, when first operand is a function call. Jeremy Ashkenas 2010-08-14 16:24:05 -04:00
  • 1d6eca76f8 disabling javascriptlint's 'test for equality mistyped as assignment', because it's not relevant to coffeescript. Jeremy Ashkenas 2010-08-14 16:05:14 -04:00
  • 6555d86328 Adding a jsl.conf configuration file for JavaScript lint, and switching to == null for soaks, accordingly. Jeremy Ashkenas 2010-08-14 16:02:01 -04:00
  • c71f2794eb Fixing compound assignment as a right-hand sub expression of a larger operation. Invalid in JS, valid in Coffee. Jeremy Ashkenas 2010-08-14 14:43:25 -04:00
  • ca18f1fad6 Core Compiler is JSLint-free again, after removing a couple extra semicolons that snuck in when if statements compiled at the top level. Jeremy Ashkenas 2010-08-14 11:42:19 -04:00
  • ead9b1041c tweaking existential compilation. Jeremy Ashkenas 2010-08-14 11:29:10 -04:00
  • 1eebbfe2bc allowing more flexible whitespace-started regexes. You have to wrap 'em in parens or assign to 'em, but it's better than nothing. Jeremy Ashkenas 2010-08-12 20:24:53 -04:00
  • d30c8b321c Allow required files to change the input and output of compiled files. Stan Angeloff 2010-08-13 01:28:38 +03:00
  • 083500fc0e fixing string interpolation docco. Jeremy Ashkenas 2010-08-12 00:00:28 -04:00
  • fd6e9a1e66 Adding support for compound assignment to indented implicit objects. Jeremy Ashkenas 2010-08-11 23:14:50 -04:00
  • 8c45aa480b Reduced the time it takes to build the grammar from 80 seconds to 15, by consolidating Operation terminals by precedence level. Jeremy Ashkenas 2010-08-11 22:24:43 -04:00
  • d704afa0e9 Fixes Issue #574 ... number keys in implicit object literals. Jeremy Ashkenas 2010-08-11 21:49:18 -04:00
  • 2ec857ef8d Fixing implicit object literals with leading string keys. Jeremy Ashkenas 2010-08-11 21:41:29 -04:00
  • ba02ebc3dc Fixes Issue #603 -- a longstanding precedence issue involving prefix vs postfix if and unless, involving using the entire single-line if statment as an expression. Jeremy Ashkenas 2010-08-11 21:28:22 -04:00
  • ac752a46bc removing bound functions from the Rewriter. Jeremy Ashkenas 2010-08-11 21:07:47 -04:00
  • 398ec3be5a Issue #602. Adding JS's Bitwise Assignment operators. Jeremy Ashkenas 2010-08-11 19:24:59 -04:00
  • 6c997978bc CoffeeScript 0.9.1 is on the books. 0.9.1 Jeremy Ashkenas 2010-08-11 00:40:15 -04:00
  • 642e7fada5 adding other implicit indentation/call/object test. Jeremy Ashkenas 2010-08-11 00:27:01 -04:00
  • 12493779b9 fixing Issue #545 ... whitespace-only heredocs. Jeremy Ashkenas 2010-08-11 00:02:49 -04:00
  • 7142131f3d adding herecomment in class definition test. Jeremy Ashkenas 2010-08-10 23:06:06 -04:00
  • 5bdf78d5ec Fixes Issue #573. Herecomments inside of class literals. Jeremy Ashkenas 2010-08-10 23:02:24 -04:00
  • 60a4138d50 refactor to simplify scanTokens method in Rewriter. Jeremy Ashkenas 2010-08-10 22:56:21 -04:00
  • cb52be6475 adding a top-level object literal test for Issue #542 Jeremy Ashkenas 2010-08-10 22:18:15 -04:00
  • c2ec40e6ce Fixes Issue #542. Ensure that top-level objects are parenthesized. It's not valid code, but we might as well not SyntaxError out. Jeremy Ashkenas 2010-08-10 22:16:51 -04:00
  • 87fd05afb0 New implementation of Rewriter#addImplicitIndentation, using Rewriter#detectEnd Jeremy Ashkenas 2010-08-10 22:05:01 -04:00
  • 45b5bae7d7 New implementation of Rewriter#addImplicitParentheses, using Rewriter#detectEnd Jeremy Ashkenas 2010-08-10 21:46:46 -04:00
  • d0b918e083 New implementation of Rewriter#addImplicitBraces -- uses detectEnd.. Jeremy Ashkenas 2010-08-10 21:13:30 -04:00
  • 0231f8da1b adding options argument to cake documentation. Jeremy Ashkenas 2010-08-09 09:20:35 -04:00
  • 3eda5a2e85 prefer the include() helper to 'in', except for array literals. Jeremy Ashkenas 2010-08-08 17:41:10 -04:00
  • 18d6fd72de First step of the general rewriter refactor. Added a generic 'detectEnd' function which is expression-pair sensitive. Use it to reimplement closeOpenCallsAndIndexes Jeremy Ashkenas 2010-08-08 17:37:28 -04:00
  • d286b33601 Fixing closures-generated-within-comprehensions to preserve block local scope for range comprehensions Jeremy Ashkenas 2010-08-08 10:52:59 -04:00
  • a749d43897 Use fs.realpathSync instead of something hacky. Jeremy Ashkenas 2010-08-08 10:05:44 -04:00
  • 08506f160d Adding CoffeeScript as a globally-available object, when invoked from the coffee command-line, only. Jeremy Ashkenas 2010-08-08 09:54:18 -04:00
  • b902377304 Fixing Issue #589. Compound assignment to an operation should have lower precedence. Jeremy Ashkenas 2010-08-08 00:07:00 -04:00
  • 1c903450c8 Merging in Stan's patch for a --require flag that allows you to hook into CoffeeScript compiler events for on 'compile', 'success', and 'failure' ... a better way to extend the language or do growlnotify stuff. Issue #590 Jeremy Ashkenas 2010-08-07 23:33:35 -04:00
  • f950e282a6 Merge branch 'hooks' of git://github.com/StanAngeloff/coffee-script Jeremy Ashkenas 2010-08-07 22:52:08 -04:00
  • 4da982b253 Merge branch 'master' of http://github.com/brodyberg/coffee-script Jeremy Ashkenas 2010-08-07 22:49:08 -04:00
  • b1b78dca47 Add command-line compiler hooks. To invoke, pass a file after -r and listen for any of these events: 'compile', 'success' and 'exception'. Example: Stan Angeloff 2010-08-07 20:24:37 +03:00
  • 0ada5a7734 Issue #587 ... Removing the Attempted Removal of Erroneous Double Parens. Jeremy Ashkenas 2010-08-07 08:13:36 -04:00
  • cc10641f38 Forbidding #interp-style interpolation ... Issue #581 Jeremy Ashkenas 2010-08-07 08:07:44 -04:00
  • 9df3e6a538 first step towards requiring #{ ... } interpolation -- removing naked interps from the compiler. Jeremy Ashkenas 2010-08-07 08:02:16 -04:00
  • 133aa7be4a Fix typo Brody Berg 2010-08-04 23:23:46 -07:00
  • 6555659e82 Fix typo Brody Berg 2010-08-04 22:53:45 -07:00
  • b1f7d5e33b compile empty coffee files to js anyway. Jeremy Ashkenas 2010-08-04 23:42:46 -04:00
  • 17bf3b7115 be more flexible about trailing commas in implicit object literals. 0.9.0 Jeremy Ashkenas 2010-08-04 23:25:30 -04:00
  • ff9af83358 CoffeeScript 0.9.0 Jeremy Ashkenas 2010-08-04 23:14:34 -04:00
  • 5f2326e911 fixing Issue #569. Compiling empty source files to disk with --no-wrap on. Jeremy Ashkenas 2010-08-04 21:36:03 -04:00
  • 4d2dd337f6 Fix typo Brody Berg 2010-08-03 22:59:17 -07:00
  • f43c79c101 more additions to the documentation for 0.9.0 Jeremy Ashkenas 2010-08-03 01:13:31 -04:00
  • b42045f3f7 regenerating large swathes of the docs Jeremy Ashkenas 2010-08-03 00:06:34 -04:00
  • 3301738b84 git-go Jeremy Ashkenas 2010-07-31 07:44:49 -04:00
  • d4ac11cd4f fixing up compout assignment for ?=, which was using a sligtly different path. Jeremy Ashkenas 2010-07-31 00:42:57 -04:00
  • 8b953bbde6 Fixing Issue #509. Double-evaluation for function calls within IndexNodes as the left-hand-assignment part of a compound-assignment operation. Jeremy Ashkenas 2010-07-30 23:37:13 -04:00
  • acd69b1c70 Fixing issue #544. Needed to special case implicit-object-closing for outdents -- it's different than a single-line implicit object with a terminator. Jeremy Ashkenas 2010-07-30 22:50:35 -04:00
  • f3caa9292f Fixing Issue #552, Indentation bug with chained calls with nested object literals... Jeremy Ashkenas 2010-07-30 22:06:22 -04:00
  • 071b527b66 Issue #559, renaming {source} option to {fileName}, on CoffeeScript.compile Jeremy Ashkenas 2010-07-30 20:37:12 -04:00
  • ebad1ec552 using double-quotes for auto-quoted object keys and hash accesses. JSON-style. Issue #556 Jeremy Ashkenas 2010-07-30 20:29:05 -04:00
  • af451bc530 tiny thing. Jeremy Ashkenas 2010-07-29 21:59:12 -04:00
  • d1b17df38c better output when trying to force a pure statment to become a return Jeremy Ashkenas 2010-07-29 21:33:35 -04:00