Commit graph

9048 commits

Author SHA1 Message Date
Richard Feldman
74c0215d2d Add the / operator 2019-09-18 19:02:42 -04:00
Richard Feldman
9c520d3785 Refactor some parsing code 2019-09-18 19:02:26 -04:00
Richard Feldman
1df7a51144 Regression tests for newlines-around-operators bug 2019-09-18 19:01:35 -04:00
Richard Feldman
e40fbc73f6 Update some comments 2019-09-18 19:00:20 -04:00
Richard Feldman
08f9eb883d rustfmt cli/ 2019-09-18 19:00:01 -04:00
Richard Feldman
b0338d06dc Fix bug where newline() didn't consume. 2019-09-18 18:59:46 -04:00
Richard Feldman
9f5a359051 Remove extra Loc from AST in SpaceBefore/After 2019-09-18 05:00:48 -04:00
Richard Feldman
4a196915b0 Fix function application parsing 2019-09-18 04:52:13 -04:00
Richard Feldman
1054c3318b Extract parse_expr_body_without_operators 2019-09-18 03:01:12 -04:00
Richard Feldman
4ac9a51e1e Fix LineTooLong propagation, add failing op tests 2019-09-18 02:57:16 -04:00
Richard Feldman
df305e4cc8 Initial pass at parsing spaces/comments 2019-09-18 00:56:59 -04:00
Richard Feldman
4713087bb2 wip add more stuff 2019-09-17 20:06:57 -04:00
Richard Feldman
9863268793 Parse basic operators 2019-09-17 04:32:03 -04:00
Richard Feldman
8fcc9504af Revert "try some boxed stuff"
This reverts commit 101048a6b33b726cf956bbdfcdb266084d13bb55.
2019-09-17 04:32:03 -04:00
Richard Feldman
3f81845de5 try some boxed stuff 2019-09-17 04:32:03 -04:00
Richard Feldman
d54cf81f7b Record raw strings during parse step 2019-09-17 04:31:54 -04:00
Richard Feldman
fa9e074488 Revert "Add Lossless concept"
This reverts commit 1360a1fdd9.
2019-09-15 23:29:19 -04:00
Richard Feldman
1360a1fdd9 Add Lossless concept 2019-09-15 23:29:16 -04:00
Richard Feldman
a41406382f Add some formatting tests 2019-09-15 23:29:06 -04:00
Richard Feldman
97209a9454 Add basic Expr formatter 2019-09-15 21:37:20 -04:00
Richard Feldman
75799abe22 Store Expr in InterpolatedStr 2019-09-15 21:22:51 -04:00
Richard Feldman
caa5395f8c Clean up some comments. 2019-09-15 15:14:49 -04:00
Richard Feldman
6915a2d916 Add more string interpolation tests 2019-09-15 15:12:48 -04:00
Richard Feldman
c4579c2ddf Extract parse_with in tests 2019-09-15 15:05:17 -04:00
Richard Feldman
1f3d83ac14 Support string interpolation. 2019-09-15 14:59:56 -04:00
Richard Feldman
9b55d7b4b8 Add failing string interpolation test 2019-09-15 14:58:42 -04:00
Richard Feldman
e96b7c1a0d Revise comment 2019-09-14 23:33:04 -04:00
Richard Feldman
0a6eb03861 Add TODO to Expr and Pattern 2019-09-14 22:35:21 -04:00
Richard Feldman
b0d39f3011 Drop obsolete comment. 2019-09-14 22:24:33 -04:00
Richard Feldman
b3ed519913 Revert "Create collections/str"
This reverts commit 53b38e301c.
2019-09-14 22:23:29 -04:00
Richard Feldman
53b38e301c Create collections/str 2019-09-14 22:06:13 -04:00
Richard Feldman
3772ce496d Merge branch 'parser-rewrite' of github.com:rtfeldman/roc into parser-rewrite 2019-09-14 21:58:36 -04:00
Richard Feldman
9baa34d65d Added a comment to parsing number literals 2019-09-14 18:04:01 -05:00
Richard Feldman
912fbc5c5c Extract highest/lowest int tests 2019-09-14 18:00:39 -05:00
Richard Feldman
a282ecf07b Test number literals with underscores 2019-09-14 17:59:51 -05:00
Richard Feldman
9f39153a35 Distinguish between malformed ints and floats 2019-09-14 16:38:44 -05:00
Richard Feldman
9b3bb7abd7 Test floats that are too big/small 2019-09-14 16:38:25 -05:00
Richard Feldman
a83638c2e1 Fix float overflow parsing bug 2019-09-14 16:14:19 -05:00
Richard Feldman
d70d3690c6 Reproduce float overflow parsing bug 2019-09-14 16:14:06 -05:00
Richard Feldman
1877713fd7 Quickcheck all int values 2019-09-14 16:04:46 -05:00
Richard Feldman
5e740da48c Test too big/small int literals 2019-09-14 16:03:15 -05:00
Richard Feldman
dfd1d4bbb4 Fix some line length and attempting issues. 2019-09-14 15:50:14 -05:00
Richard Feldman
2ad510ba77 Disallow null characters in string literals 2019-09-09 19:13:50 -05:00
Richard Feldman
0bf66a9911 wip 2019-09-07 09:43:19 -04:00
Richard Feldman
95b43d5554 Add some comments to number_literal 2019-09-04 01:26:42 -04:00
Richard Feldman
3db0e9e5c6 Fix negative number literals 2019-09-04 01:23:50 -04:00
Richard Feldman
6cfc98b415 Reproduce negative number literals bug 2019-09-04 01:12:13 -04:00
Richard Feldman
9d7cc18ef5 Add number literal test 2019-09-04 01:11:59 -04:00
Richard Feldman
57d7247ea6 Parse number literals 2019-09-04 01:07:27 -04:00
Richard Feldman
6e4e517787 Introduce parser::Fail 2019-09-04 00:09:28 -04:00