Commit graph

133 commits

Author SHA1 Message Date
Richard Feldman
4a196915b0 Fix function application parsing 2019-09-18 04:52:13 -04:00
Richard Feldman
4ac9a51e1e Fix LineTooLong propagation, add failing op tests 2019-09-18 02:57:16 -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
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
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
9b55d7b4b8 Add failing string interpolation test 2019-09-15 14:58:42 -04:00
Richard Feldman
b0d39f3011 Drop obsolete comment. 2019-09-14 22:24:33 -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
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
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
0bf66a9911 wip 2019-09-07 09:43:19 -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
Richard Feldman
94a5461407 Remove Problems from parser, check line overflow 2019-09-03 20:08:30 -04:00
Richard Feldman
0cd8b08079 Reorganize parser code. 2019-09-03 01:30:54 -04:00
Richard Feldman
f47b657b9f cargo fmt 2019-09-02 15:08:33 -04:00
Richard Feldman
04595a9e71 Frac+Approx --> Float 2019-09-01 00:50:11 -04:00
Richard Feldman
b99a1e4235 Add a list parsing test 2019-08-31 23:24:04 -04:00
Richard Feldman
f8f28e1f29 Reproduce list parsing bug 2019-08-31 23:15:17 -04:00
Richard Feldman
8985b4bec7 Add lists 2019-08-28 00:04:08 -04:00
Richard Feldman
a49cc76f4f Move parse helpers into tests/helpers 2019-08-10 20:00:20 -04:00
Richard Feldman
2990aa56bc Replace CallByName with Apply 2019-08-04 02:37:07 -04:00
Richard Feldman
1531b7ba1a Drop unused imports 2019-07-26 23:51:32 -04:00
Richard Feldman
024f891f32 Restore remaining parse tests 2019-07-26 23:44:45 -04:00
Richard Feldman
23f6e650af Restore more parser tests 2019-07-26 23:41:43 -04:00
Richard Feldman
c8edddfd48 Fix parsing edge case re: function calls at eof 2019-07-26 23:35:33 -04:00
Richard Feldman
4df8064407 Use r# in parser tests. 2019-07-22 22:11:50 -04:00
Richard Feldman
39c4380a31 Move precedence tests into test_canonicalize 2019-07-22 22:07:44 -04:00
Richard Feldman
ee8a9e3867 Add Located, and parse assignments as a Vec 2019-07-22 22:07:44 -04:00
Richard Feldman
07d051c06f Approx literals 2019-07-11 23:56:52 -04:00
Richard Feldman
67a507080d Introduce Approx 2019-07-11 23:14:32 -04:00
Richard Feldman
21c98d6364 Parse && and || 2019-07-11 22:03:48 -04:00
Richard Feldman
79951cec5e Operator associativity and precedence 2019-07-11 22:03:28 -04:00
Richard Feldman
fde3cedfef Fix paren parsing bug, thread errors through eval 2019-07-09 23:19:50 -04:00
Richard Feldman
07a05b90fc Restore eval, add |> operator 2019-07-08 23:35:11 -04:00
Richard Feldman
7bcc471d4a Function application no longer uses commas.
Also, numbers can have digits separated by underscores.
(Previously it was separated by whitespace; this no longer works.)
2019-07-07 22:18:00 -04:00