Commit Graph

  • 5cbd94bf14 rebuilding narwhal uncovered a bug with named functions Jeremy Ashkenas 2010-01-01 22:00:34 -05:00
  • 38520bfece rebuilding narwhal uncovered a bug with named functions Jeremy Ashkenas 2010-01-01 22:00:34 -05:00
  • fa3f3e41d4 fixing the food/eat array comprehension in the docs to not pretend like there's a made-up method on String.prototype Jeremy Ashkenas 2010-01-01 17:16:34 -05:00
  • c3d0e50e8f fixing the food/eat array comprehension in the docs to not pretend like there's a made-up method on String.prototype Jeremy Ashkenas 2010-01-01 17:16:34 -05:00
  • 94bab256b4 adding consistent highlighting to variable assignment, whether functions or values Jeremy Ashkenas 2010-01-01 17:11:48 -05:00
  • 34add7d7bf adding consistent highlighting to variable assignment, whether functions or values Jeremy Ashkenas 2010-01-01 17:11:48 -05:00
  • dfa2f50076 better existence test, with tests Jeremy Ashkenas 2010-01-01 12:41:55 -05:00
  • 75d9e23df4 better existence test, with tests Jeremy Ashkenas 2010-01-01 12:41:55 -05:00
  • e2de88544d adding the notion of existence -- postfixing an expression with a question mark will check if to see if it's not null or undefined Jeremy Ashkenas 2010-01-01 12:31:05 -05:00
  • ff80f8d423 adding the notion of existence -- postfixing an expression with a question mark will check if to see if it's not null or undefined Jeremy Ashkenas 2010-01-01 12:31:05 -05:00
  • 010a2dde11 commenting the lexer a bit more Jeremy Ashkenas 2010-01-01 12:11:35 -05:00
  • 3489eec6ee commenting the lexer a bit more Jeremy Ashkenas 2010-01-01 12:11:35 -05:00
  • 2fb8f48e75 expanding the list of tokens that regexes may not follow, according to the Mozilla JS 2.0 docs Jeremy Ashkenas 2010-01-01 12:08:36 -05:00
  • 2f69bc1708 expanding the list of tokens that regexes may not follow, according to the Mozilla JS 2.0 docs Jeremy Ashkenas 2010-01-01 12:08:36 -05:00
  • 271ea24b20 adding steps to range comprehensions Jeremy Ashkenas 2010-01-01 11:54:59 -05:00
  • 0f81dbe913 adding steps to range comprehensions Jeremy Ashkenas 2010-01-01 11:54:59 -05:00
  • 792fd359bd fixing precedence order, so that you can nest range comprehensions Jeremy Ashkenas 2010-01-01 11:19:57 -05:00
  • e30a267c9d fixing precedence order, so that you can nest range comprehensions Jeremy Ashkenas 2010-01-01 11:19:57 -05:00
  • acf4a5ee47 making range comprehensions compile safely, even when you assign to the same variable as your endposts. Jeremy Ashkenas 2010-01-01 10:55:43 -05:00
  • 305f883eab making range comprehensions compile safely, even when you assign to the same variable as your endposts. Jeremy Ashkenas 2010-01-01 10:55:43 -05:00
  • d9afe2cf44 -- Jeremy Ashkenas 2010-01-01 10:40:29 -05:00
  • f622fc43bc -- Jeremy Ashkenas 2010-01-01 10:40:29 -05:00
  • ee304485b8 allowing indentation within function calls Jeremy Ashkenas 2010-01-01 10:38:28 -05:00
  • a93a570603 allowing indentation within function calls Jeremy Ashkenas 2010-01-01 10:38:28 -05:00
  • 5957ba624a adding a test for expressions in range comprehensions Jeremy Ashkenas 2010-01-01 10:20:29 -05:00
  • 02fbd28e58 adding a test for expressions in range comprehensions Jeremy Ashkenas 2010-01-01 10:20:29 -05:00
  • 2b40607b57 test for uminus Jeremy Ashkenas 2010-01-01 10:17:33 -05:00
  • 2cef93b381 test for uminus Jeremy Ashkenas 2010-01-01 10:17:33 -05:00
  • 8da4185bbf allowing expressions within range literals Jeremy Ashkenas 2010-01-01 10:15:22 -05:00
  • caf9d627cb allowing expressions within range literals Jeremy Ashkenas 2010-01-01 10:15:22 -05:00
  • e8df8abf7a fixing the regex lexer to make it less agressive when we know it can't possibly be a regex Jeremy Ashkenas 2010-01-01 09:49:18 -05:00
  • ad5b5fa458 fixing the regex lexer to make it less agressive when we know it can't possibly be a regex Jeremy Ashkenas 2010-01-01 09:49:18 -05:00
  • b7ef9510c9 fix for multiple splats in a function call Jeremy Ashkenas 2009-12-31 20:02:15 -05:00
  • 41056ca2bd fix for multiple splats in a function call Jeremy Ashkenas 2009-12-31 20:02:15 -05:00
  • fba131c5a4 adding splats as arguments to function calls Jeremy Ashkenas 2009-12-31 19:52:13 -05:00
  • 409283a30f adding splats as arguments to function calls Jeremy Ashkenas 2009-12-31 19:52:13 -05:00
  • 4985a400e6 adding a note in the docs about how to build the parser and install the gem Jeremy Ashkenas 2009-12-31 18:22:51 -05:00
  • abfc9f5a2d adding a note in the docs about how to build the parser and install the gem Jeremy Ashkenas 2009-12-31 18:22:51 -05:00
  • 2ed041b5e1 comment about test_execution being the most important Jeremy Ashkenas 2009-12-31 18:09:48 -05:00
  • 43edd29d22 comment about test_execution being the most important Jeremy Ashkenas 2009-12-31 18:09:48 -05:00
  • 5bcb2b2629 reserving variables for splats the regular way, not through a custom 'var' declaration Jeremy Ashkenas 2009-12-31 18:03:39 -05:00
  • 26c89cef06 reserving variables for splats the regular way, not through a custom 'var' declaration Jeremy Ashkenas 2009-12-31 18:03:39 -05:00
  • adca8183de adding splats to function definitions Jeremy Ashkenas 2009-12-31 17:50:12 -05:00
  • 1d2bb3b2be adding splats to function definitions Jeremy Ashkenas 2009-12-31 17:50:12 -05:00
  • c187f2160f expressions nested in expressions made for some indentation issues -- statements are now responsible for their own leading indentation Jeremy Ashkenas 2009-12-31 16:50:46 -05:00
  • f299972713 expressions nested in expressions made for some indentation issues -- statements are now responsible for their own leading indentation Jeremy Ashkenas 2009-12-31 16:50:46 -05:00
  • 959c9a31cb adding a test for multiline-array-comprehension-with-filter Jeremy Ashkenas 2009-12-31 16:13:52 -05:00
  • bfd7455db4 adding a test for multiline-array-comprehension-with-filter Jeremy Ashkenas 2009-12-31 16:13:52 -05:00
  • 9f6233473e enabling multi-line array and object comprehensions Jeremy Ashkenas 2009-12-31 16:09:27 -05:00
  • 7ec91a1ee5 enabling multi-line array and object comprehensions Jeremy Ashkenas 2009-12-31 16:09:27 -05:00
  • 32b0f9fa4f adding a filtered object comprehension test Jeremy Ashkenas 2009-12-31 15:08:54 -05:00
  • 44fec922a4 adding a filtered object comprehension test Jeremy Ashkenas 2009-12-31 15:08:54 -05:00
  • f7e49eaae4 using push for comprehension results so that it works with object keys, and adding a test for object comprehensions Jeremy Ashkenas 2009-12-31 15:03:32 -05:00
  • 07d0044718 using push for comprehension results so that it works with object keys, and adding a test for object comprehensions Jeremy Ashkenas 2009-12-31 15:03:32 -05:00
  • 3042a50f87 adding weepy's suggestion to use (for .. in) for array comprehensions, which means that they're now object comprehensions as well Jeremy Ashkenas 2009-12-31 14:52:14 -05:00
  • 00538bd62c adding weepy's suggestion to use (for .. in) for array comprehensions, which means that they're now object comprehensions as well Jeremy Ashkenas 2009-12-31 14:52:14 -05:00
  • c8e820e851 done commenting the rewriter Jeremy Ashkenas 2009-12-31 13:45:07 -05:00
  • 4e8a12d70d done commenting the rewriter Jeremy Ashkenas 2009-12-31 13:45:07 -05:00
  • 66f92e770d detailed scan_tokens so that the calling function can indicate the number of spaces to move forward (or backward) in the token stream Jeremy Ashkenas 2009-12-31 13:43:24 -05:00
  • edf1fc769f detailed scan_tokens so that the calling function can indicate the number of spaces to move forward (or backward) in the token stream Jeremy Ashkenas 2009-12-31 13:43:24 -05:00
  • f3472b7437 making assignment token detection a regex like all the others Jeremy Ashkenas 2009-12-31 13:26:38 -05:00
  • 2231d67cef making assignment token detection a regex like all the others Jeremy Ashkenas 2009-12-31 13:26:38 -05:00
  • fdf2a76c53 pulled out all token-stream-rewriting logic into the CoffeeScript::Rewriter -- let the lexer be simpleminded Jeremy Ashkenas 2009-12-31 13:22:33 -05:00
  • a376e7f4a3 pulled out all token-stream-rewriting logic into the CoffeeScript::Rewriter -- let the lexer be simpleminded Jeremy Ashkenas 2009-12-31 13:22:33 -05:00
  • d11569b434 adding a rake:ultraviolet build syntax highlighter task, and regenerating the docs with correct highlighting Jeremy Ashkenas 2009-12-31 13:01:10 -05:00
  • 20ade4f448 adding a rake:ultraviolet build syntax highlighter task, and regenerating the docs with correct highlighting Jeremy Ashkenas 2009-12-31 13:01:10 -05:00
  • 86be82f3ae adding a test case for named functions Jeremy Ashkenas 2009-12-31 10:52:00 -05:00
  • f9d630119d adding a test case for named functions Jeremy Ashkenas 2009-12-31 10:52:00 -05:00
  • bcc5aa2bc3 updating docs -- need to get back on the computer that has the syntax highlighter for UV installed Jeremy Ashkenas 2009-12-30 23:43:55 -05:00
  • 7f76c22894 updating docs -- need to get back on the computer that has the syntax highlighter for UV installed Jeremy Ashkenas 2009-12-30 23:43:55 -05:00
  • 5658b2b41f updating tests for named functions Jeremy Ashkenas 2009-12-30 23:14:29 -05:00
  • b1fa06ff70 updating tests for named functions Jeremy Ashkenas 2009-12-30 23:14:29 -05:00
  • 34bf4ce325 making all functions named functions, if children of an immediate assignment Jeremy Ashkenas 2009-12-30 23:13:22 -05:00
  • e481a39a0d making all functions named functions, if children of an immediate assignment Jeremy Ashkenas 2009-12-30 23:13:22 -05:00
  • 4251aa30c6 adding proper auto-newline escaping Jeremy Ashkenas 2009-12-30 22:49:25 -05:00
  • 8762162dff adding proper auto-newline escaping Jeremy Ashkenas 2009-12-30 22:49:25 -05:00
  • 3ad9316fd0 allowing any manner of indentation in the comments, by adjusting them in the lexer Jeremy Ashkenas 2009-12-30 22:24:40 -05:00
  • a6539a030c allowing any manner of indentation in the comments, by adjusting them in the lexer Jeremy Ashkenas 2009-12-30 22:24:40 -05:00
  • e4ae324e8f don't print the confusing indentation numbers when raising ParseErrors for indentation Jeremy Ashkenas 2009-12-30 21:57:03 -05:00
  • 942572d081 don't print the confusing indentation numbers when raising ParseErrors for indentation Jeremy Ashkenas 2009-12-30 21:57:03 -05:00
  • 370d05148d getting there, finally ... all tests are green for whitespace Jeremy Ashkenas 2009-12-30 21:51:23 -05:00
  • ec60205014 getting there, finally ... all tests are green for whitespace Jeremy Ashkenas 2009-12-30 21:51:23 -05:00
  • 3f27b0ff72 the underscore example parses now -- added line number information to parenthetical nodes Jeremy Ashkenas 2009-12-30 21:44:51 -05:00
  • dba8439425 the underscore example parses now -- added line number information to parenthetical nodes Jeremy Ashkenas 2009-12-30 21:44:51 -05:00
  • 71cf6ab031 moving the newline escaping detection up higher so indents don't overrule it Jeremy Ashkenas 2009-12-30 21:41:01 -05:00
  • 774e3d3e31 moving the newline escaping detection up higher so indents don't overrule it Jeremy Ashkenas 2009-12-30 21:41:01 -05:00
  • f3e9a18c3c lex indents with higher precedence than comments Jeremy Ashkenas 2009-12-30 21:20:30 -05:00
  • cae0b1a038 lex indents with higher precedence than comments Jeremy Ashkenas 2009-12-30 21:20:30 -05:00
  • d2176acf25 more fiddling with the lexer -- the indentation is super fragile Jeremy Ashkenas 2009-12-30 21:15:54 -05:00
  • bbbfd92373 more fiddling with the lexer -- the indentation is super fragile Jeremy Ashkenas 2009-12-30 21:15:54 -05:00
  • 62725c5a52 more fiddling with the lexer -- the indentation is super fragile Jeremy Ashkenas 2009-12-30 21:11:54 -05:00
  • fd83759ef4 more fiddling with the lexer -- the indentation is super fragile Jeremy Ashkenas 2009-12-30 21:11:54 -05:00
  • cc66b31e69 rolling back MULTI_DENT regex Jeremy Ashkenas 2009-12-30 20:41:32 -05:00
  • 49714656e1 rolling back MULTI_DENT regex Jeremy Ashkenas 2009-12-30 20:41:32 -05:00
  • 199d314903 regex cleanup -- eliminating some lookahead because Ruby regexps blow chunks (stackoverflows) when you look (ahead) at them funny. Jeremy Ashkenas 2009-12-30 20:36:47 -05:00
  • d43d491561 regex cleanup -- eliminating some lookahead because Ruby regexps blow chunks (stackoverflows) when you look (ahead) at them funny. Jeremy Ashkenas 2009-12-30 20:36:47 -05:00
  • f2a805db24 fixed up the comment/assignment interleaving in nodes.rb Jeremy Ashkenas 2009-12-30 20:24:24 -05:00
  • c8711b419e fixed up the comment/assignment interleaving in nodes.rb Jeremy Ashkenas 2009-12-30 20:24:24 -05:00
  • b7e29aac4d rewrote 'rewrite_closing_parens' with an explicit loop -- there was a bug when adding to @tokens in the middle of scan_tokens' while loop -- consider scan_tokens to be on probation until further notice Jeremy Ashkenas 2009-12-30 20:12:30 -05:00
  • 5c7b77aa4d rewrote 'rewrite_closing_parens' with an explicit loop -- there was a bug when adding to @tokens in the middle of scan_tokens' while loop -- consider scan_tokens to be on probation until further notice Jeremy Ashkenas 2009-12-30 20:12:30 -05:00