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
|
92cdeb093e
|
don't break trailing commas with rewrite_closing_parens
|
2009-12-29 10:20:18 -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
|
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
|
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
|
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 |
|
Jeremy Ashkenas
|
6aa247f73d
|
that's it for now for significant whitespace -- I really just can't make flexible enough
|
2009-12-26 19:29:59 -08:00 |
|
Jeremy Ashkenas
|
7aa69579ff
|
little more progress on whitespace
|
2009-12-26 10:49:11 -08:00 |
|
Jeremy Ashkenas
|
5f3e2b7fc7
|
merging in master
|
2009-12-26 09:59:06 -08:00 |
|
Jeremy Ashkenas
|
1486bbab9f
|
added array comprehensions over ranges
|
2009-12-26 00:16:40 -08:00 |
|
Jeremy Ashkenas
|
9adf2e2d30
|
major internal reworking -- all variable declarations have been pushed up to the first line of the block scope -- all assignment is now an inherent expression
|
2009-12-25 22:57:33 -08:00 |
|
Jeremy Ashkenas
|
00659e5f76
|
reorganizing test fixtures and adding range literals for array slices
|
2009-12-25 16:20:28 -08:00 |
|
Jeremy Ashkenas
|
03a90928e1
|
moved the coffeescript extension over from .cs to .coffee -- let's leave C# in peace. Changed array comprehensions to always return their mapped result, even when unassigned
|
2009-12-25 14:18:05 -08:00 |
|
Jeremy Ashkenas
|
0337513172
|
ForBody is really the ForSource
|
2009-12-25 13:40:57 -08:00 |
|
Jeremy Ashkenas
|
1ee2c53391
|
cleaned up the for grammar and eliminated a shift/reduce conflict
|
2009-12-25 13:39:33 -08:00 |
|
Jeremy Ashkenas
|
4b7c965101
|
make equals signs full equals of colons -- you can use them inside of object literals now too
|
2009-12-25 13:21:17 -08:00 |
|
Jeremy Ashkenas
|
11c394fb7e
|
allowing = to assign
|
2009-12-25 07:42:27 -08:00 |
|
Jeremy Ashkenas
|
54a7c405e7
|
going back to familiar operators +: is just too strange
|
2009-12-25 07:31:51 -08:00 |
|
Jeremy Ashkenas
|
2393472924
|
allowing chained function calls, one right after another
|
2009-12-25 07:08:57 -08:00 |
|
Jeremy Ashkenas
|
cca80342aa
|
making all assignment-y operators use a colon -- now it's +: -: *: /:, and friends
|
2009-12-24 22:25:29 -08:00 |
|
Jeremy Ashkenas
|
7a2f5a333f
|
trading aint for isnt -- let's be serious
|
2009-12-24 17:21:20 -08:00 |
|
Jeremy Ashkenas
|
66303636dc
|
allowing quoted strings within object assignment, a in JS and JSON
|
2009-12-24 17:14:53 -08:00 |
|
Jeremy Ashkenas
|
a71de4b5b6
|
got extends back in the language -- use it together with super
|
2009-12-24 16:49:23 -08:00 |
|
Jeremy Ashkenas
|
7f066aa168
|
...
|
2009-12-24 15:05:14 -08:00 |
|
Jeremy Ashkenas
|
cb3b47690a
|
this might not work for ))) outdent cases
|
2009-12-24 14:34:48 -08:00 |
|
Jeremy Ashkenas
|
cf6060bdb3
|
first, totally broken branch of significant whitespace -- it can handle examples/whitespace.cs though
|
2009-12-24 13:48:46 -08:00 |
|
Jeremy Ashkenas
|
9eeac9b272
|
added the typeof operater as an OpNode
|
2009-12-24 11:50:44 -08:00 |
|
Jeremy Ashkenas
|
f859eb6cec
|
added the instanceof operator to the grammar as an operation node
|
2009-12-24 11:46:51 -08:00 |
|
Jeremy Ashkenas
|
34486039e1
|
changing switch/case to switch/when -- it's a better word
|
2009-12-24 01:33:59 -08:00 |
|
Jeremy Ashkenas
|
9841b78ed8
|
fixed the broken try/catch grammar
|
2009-12-24 00:45:16 -08:00 |
|
Jeremy Ashkenas
|
065cfddd0d
|
with a more comprehensive execution test that uncovered some missing spots
|
2009-12-24 00:41:12 -08:00 |
|
Jeremy Ashkenas
|
b8f563d49e
|
first draft of docs are done
|
2009-12-23 23:01:39 -08:00 |
|
Jeremy Ashkenas
|
a1ee622aa6
|
added git st with the new operator regex
|
2009-12-24 00:37:33 -05:00 |
|
Jeremy Ashkenas
|
8d26488748
|
added yes, no, on and off as boolean aliases and a nice aliases section to the docs
|
2009-12-23 20:24:55 -05:00 |
|
Jeremy Ashkenas
|
777eac045a
|
broken waypoint, but fixed line numbers with the new JS comments
|
2009-12-23 19:42:18 -05:00 |
|
Jeremy Ashkenas
|
3902a8b268
|
removed all traces of 'extends' -- it's not any shorter or more convenient than just setting the prototype
|
2009-12-22 12:08:29 -05:00 |
|
Jeremy Ashkenas
|
63a910d7ce
|
got comments within object and array literals working out
|
2009-12-22 11:50:43 -05:00 |
|
Jeremy Ashkenas
|
3cee51cc37
|
first draft of parsing and printing along comments -- unfortunately, not yet working within objects and arrays
|
2009-12-22 11:27:19 -05:00 |
|
Jeremy Ashkenas
|
d14b127b60
|
documentation waypoint
|
2009-12-21 11:41:45 -05:00 |
|
Jeremy Ashkenas
|
d86f92c6f2
|
added full complement of bitwise operators
|
2009-12-19 22:55:58 -05:00 |
|
Jeremy Ashkenas
|
91303efd2c
|
lots of tweaks make the tests pass again
|
2009-12-18 23:13:59 -05:00 |
|
Jeremy Ashkenas
|
d73ff9a79f
|
patched up array comprehensions somewhat. Parens are still a necessary evil, and there's still probably plenty of edge cases
|
2009-12-18 22:30:09 -05:00 |
|
Jeremy Ashkenas
|
98cf9f5af2
|
parser test raises some minor improvements (remove unnecessary ValueNode arrays, etc
|
2009-12-18 07:11:01 -05:00 |
|
Jeremy Ashkenas
|
35b5d8c630
|
after a lot of grammar wrestling, got the if-else chains to parse unambiguously. Now you only need a single period to close chains of any length.
|
2009-12-18 00:49:23 -05:00 |
|
Jeremy Ashkenas
|
8575d91c66
|
finally got the function/object/variable assignment indentation straightened out, I think
|
2009-12-17 23:45:24 -05:00 |
|
Jeremy Ashkenas
|
5c737d29ab
|
renamed Nodes to Expressions
|
2009-12-17 22:58:40 -05:00 |
|
Jeremy Ashkenas
|
dd28074436
|
finished commenting the grammar
|
2009-12-17 22:22:35 -05:00 |
|