Commit graph

117 commits

Author SHA1 Message Date
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
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
Richard Feldman
36bea3a13f Change closure syntax to \a b => c 2019-07-07 10:54:32 -04:00
Richard Feldman
3651151f12 Incorporate Located, reorganize operator 2019-07-06 18:44:47 -04:00
Richard Feldman
15a87b64a3 Add comparison operators 2019-06-23 19:09:07 -04:00
Richard Feldman
fbc050fd59 Add test for inline comment inside assignment 2019-06-22 10:17:30 -04:00
Richard Feldman
10d84520b2 0.1 + 0.2 == 0.3 2019-06-20 22:29:10 -04:00
Richard Feldman
ed8fe85031 Add horizontal line comments. 2019-06-19 22:04:48 -04:00
Richard Feldman
3e041b83f0 Add failing test for block comments 2019-06-19 22:00:20 -04:00
Richard Feldman
d970944a4f Add failing test for inline comments 2019-06-19 21:43:35 -04:00
Richard Feldman
1556cf1fc9 Drop smallvec 2019-06-19 21:37:48 -04:00
Richard Feldman
a45bad0d44 Fix multi-newline case bug 2019-06-14 02:02:29 -04:00
Richard Feldman
19a23940d9 Reproduce multiline case bug 2019-06-14 00:37:23 -04:00
Richard Feldman
e8ca53317d Add test for two-branch case with two newlines 2019-06-14 00:33:07 -04:00
Richard Feldman
3ce7b2006d Add failing test for case with two newlines 2019-06-14 00:07:35 -04:00
Richard Feldman
e2175df5a2 Reproduce string interpolation bugs 2019-06-13 22:47:11 -04:00
Richard Feldman
f057c51a7a Add regression test for arguments named i 2019-06-13 00:34:48 -04:00
Richard Feldman
c85f246988 Rename Func to CallByName 2019-06-13 00:26:27 -04:00