Jeremy Ashkenas
|
f3e9a18c3c
|
lex indents with higher precedence than comments
|
2009-12-30 21:20:30 -05:00 |
|
Jeremy Ashkenas
|
d2176acf25
|
more fiddling with the lexer -- the indentation is super fragile
|
2009-12-30 21:15:54 -05:00 |
|
Jeremy Ashkenas
|
62725c5a52
|
more fiddling with the lexer -- the indentation is super fragile
|
2009-12-30 21:11:54 -05:00 |
|
Jeremy Ashkenas
|
cc66b31e69
|
rolling back MULTI_DENT regex
|
2009-12-30 20:41:32 -05:00 |
|
Jeremy Ashkenas
|
199d314903
|
regex cleanup -- eliminating some lookahead because Ruby regexps blow chunks (stackoverflows) when you look (ahead) at them funny.
|
2009-12-30 20:36:47 -05:00 |
|
Jeremy Ashkenas
|
f2a805db24
|
fixed up the comment/assignment interleaving in nodes.rb
|
2009-12-30 20:24:24 -05:00 |
|
Jeremy Ashkenas
|
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
|
2009-12-30 20:12:30 -05:00 |
|
Jeremy Ashkenas
|
2ee04b8421
|
be more vigorous about removing mid-expression newlines, 'when' closes implicit blocks, a better comment-detecting regex lexer that doesn't eat outdents
|
2009-12-30 19:26:37 -05:00 |
|
Jeremy Ashkenas
|
65ce74fbcb
|
big milestone. examples/code.coffee now compiles correctly under the new whitespace regime
|
2009-12-30 18:59:33 -05:00 |
|
Jeremy Ashkenas
|
4b520d04e3
|
balancing parens closing single-line blocks
|
2009-12-30 18:52:03 -05:00 |
|
Jeremy Ashkenas
|
4eb10f9d43
|
fixing up documents example
|
2009-12-30 18:28:16 -05:00 |
|
Jeremy Ashkenas
|
7e58d1d914
|
adding ')' as a SINGLE_CLOSER, although it's probably unsafe
|
2009-12-30 18:09:43 -05:00 |
|
Jeremy Ashkenas
|
4097a81456
|
parser and test tweaks for whitespace -- tests are coming along
|
2009-12-30 17:58:27 -05:00 |
|
Jeremy Ashkenas
|
c4413b933b
|
removed the final shift/reduce errors -- back to zero for the first time in a long time
|
2009-12-30 17:45:47 -05:00 |
|
Jeremy Ashkenas
|
e3da53e3df
|
special case for 'else if' in the lexer
|
2009-12-30 17:41:14 -05:00 |
|
Jeremy Ashkenas
|
675a5f5d7c
|
execution tests still pass -- more lexer block insertion and 2 shift/reduces in the grammar now
|
2009-12-30 15:52:07 -05:00 |
|
Jeremy Ashkenas
|
02c19b3170
|
patching up the lexer and adding a test with trailing whitespace (it was too string for trailing whitespace before)
|
2009-12-30 15:10:47 -05:00 |
|
Jeremy Ashkenas
|
96859e749b
|
fixing up narwhal integration (again)
|
2009-12-30 15:05:05 -05:00 |
|
Jeremy Ashkenas
|
622ddea343
|
fixin up narwhal factory and adding more implicit blocks to the lexer
|
2009-12-30 14:32:59 -05:00 |
|
Jeremy Ashkenas
|
8e8efe4288
|
patched up lexer to add indentation to single-line flavors of statements -- let's expand this idea
|
2009-12-30 13:58:00 -05:00 |
|
Jeremy Ashkenas
|
df5c5d9fe2
|
merged in master branch again
|
2009-12-30 13:38:50 -05:00 |
|
Jeremy Ashkenas
|
cf7ce8a1af
|
fixing the double-printing bug with coffee -r
|
2009-12-30 13:34:25 -05:00 |
|
Jeremy Ashkenas
|
b3cd5721cf
|
ignoring test.coffee
|
2009-12-30 12:59:05 -05:00 |
|
Jeremy Ashkenas
|
893908b8fe
|
removing dots from whitespace examples
|
2009-12-30 00:22:27 -05:00 |
|
Jeremy Ashkenas
|
6821660905
|
clean up a couple of test errors for whitespace
|
2009-12-30 00:08:49 -05:00 |
|
Jeremy Ashkenas
|
bc0214730a
|
touch-ups cleanups to the lexer and rebuilding the narwhal libs from whitespace'd versions
|
2009-12-29 23:01:08 -05:00 |
|
Jeremy Ashkenas
|
57d0f25054
|
implementing kamatsu's debt-based lexer for closing delimiters
|
2009-12-29 22:24:52 -05:00 |
|
Jeremy Ashkenas
|
f456d1b78e
|
whitespace parser down to 4 shift/reduce errors -- good enough for me
|
2009-12-29 21:46:15 -05:00 |
|
Jeremy Ashkenas
|
332f499c31
|
put the commas on the outside of expression closers
|
2009-12-29 20:39:51 -05:00 |
|
Jeremy Ashkenas
|
92cdeb093e
|
don't break trailing commas with rewrite_closing_parens
|
2009-12-29 10:20:18 -05:00 |
|
Jeremy Ashkenas
|
f2bdd555fa
|
killing some newlines in the execution tests, to test the lexer's newline suppression
|
2009-12-29 10:02:19 -05:00 |
|
Jeremy Ashkenas
|
5c7dee556a
|
changing array comprehension filters from 'where' to 'when' to mirror case/when
|
2009-12-29 09:55:37 -05:00 |
|
Jeremy Ashkenas
|
8c6e5d0b37
|
allowing indentation in object and array literals
|
2009-12-29 09:25:56 -05:00 |
|
Jeremy Ashkenas
|
1128beb49b
|
still some kinks to work out -- mid-expression blocks
|
2009-12-29 09:18:41 -05:00 |
|
Jeremy Ashkenas
|
0963eea60e
|
using 'where' for array comprehension filtering, after kamatsu's suggestion -- execution tests pass now with significant whitespace
|
2009-12-29 08:52:26 -05:00 |
|
Jeremy Ashkenas
|
c1cdedd260
|
moving along with whitespace
|
2009-12-28 23:08:02 -05:00 |
|
Jeremy Ashkenas
|
3b0b93ec06
|
first draft of kamatsu's rewrite rules -- finally got whitespace to be flexible enough, I think.
|
2009-12-28 21:07:47 -05:00 |
|
Jeremy Ashkenas
|
9c2f66ff13
|
got lexer balancing parens, indent/outdents, brackets, and curlies
|
2009-12-28 21:02:40 -05:00 |
|
Jeremy Ashkenas
|
1b688d7077
|
merging in master
|
2009-12-28 20:06:23 -05:00 |
|
Jeremy Ashkenas
|
df1f9c27eb
|
removed unused example
|
2009-12-28 20:05:14 -05:00 |
|
Jeremy Ashkenas
|
e227a3bc69
|
fixing relative path for execution tests
|
2009-12-28 16:23:48 -05:00 |
|
Jeremy Ashkenas
|
e4c6119550
|
stop shifting args
|
2009-12-28 16:20:11 -05:00 |
|
Jeremy Ashkenas
|
6c9e8f28b6
|
rebuilding narwhal libs
|
2009-12-28 16:10:56 -05:00 |
|
Jeremy Ashkenas
|
cc7e685428
|
merging in tlrobinson's fix for package.json
|
2009-12-28 16:09:14 -05:00 |
|
tlrobinson
|
4abd88f2a9
|
Add package.json to gemspec files so Narwhal integrations works when installed as a gem.
|
2009-12-28 12:45:47 -08:00 |
|
Jeremy Ashkenas
|
a44fe402a1
|
removing broken accidental commit
|
2009-12-28 09:02:55 -08:00 |
|
tlrobinson
|
350cb623ae
|
Add package on command line in case it's not installed in a Narwhal packages path.
|
2009-12-28 01:49:07 -08:00 |
|
tlrobinson
|
42c9c53a4c
|
Merge branch 'master' of git://github.com/jashkenas/coffee-script
|
2009-12-28 01:36:23 -08:00 |
|
tlrobinson
|
5a49c22121
|
Fixed Narwhal integration. Cleaned up module organization, etc.
|
2009-12-28 01:16:57 -08:00 |
|
Jeremy Ashkenas
|
2bc4cbbdcc
|
part of the way to supporting multiline array comprehensions -- the grammar and parsing is there -- the code generation is tricky
|
2009-12-27 21:50:02 -08:00 |
|