Commit graph

88 commits

Author SHA1 Message Date
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
Richard Feldman
41ddfc149b Rename Let to Assign 2019-06-13 00:24:54 -04:00
Richard Feldman
d6bfc42142 Add some more variant tests 2019-06-13 00:23:10 -04:00
Richard Feldman
92f9a770a8 Reproduce failing function call case 2019-06-13 00:03:04 -04:00
Richard Feldman
b48eef79b2 Reproduce nonempty variant pattern match bug 2019-06-12 23:28:25 -04:00
Richard Feldman
6ccdade335 Reproduce some failing case patterns 2019-06-12 23:19:16 -04:00
Richard Feldman
62cd13e845 Reproduce failing case-expression parse 2019-06-12 22:07:30 -04:00
Richard Feldman
3f8dc42527 Add test to repro case parsing bug 2019-06-12 21:55:28 -04:00
Richard Feldman
9ff94584b5 Split out parens_with_spaces test 2019-06-12 21:25:16 -04:00
Richard Feldman
296bf6fa9d Fix some function application bugs 2019-06-12 21:25:16 -04:00
Richard Feldman
5a8cdce724 Fix parsing multiline fn application in let 2019-06-12 21:25:16 -04:00
Richard Feldman
29ae330ed6 Rename test modules 2019-06-12 21:25:16 -04:00
Richard Feldman
6315ca14e5 Fix string interpolation 2019-06-12 21:25:16 -04:00
Richard Feldman
457fc83faf Add failing test case for let with application 2019-06-12 21:25:16 -04:00
Richard Feldman
826b0d5ab0 Fix variants getting mixed up with bools 2019-06-12 21:25:16 -04:00
Richard Feldman
c2cec85202 Second attempt at string interpolation 2019-06-12 21:25:16 -04:00
Richard Feldman
16320a0ad5 Add failing string interpolation test 2019-06-12 21:25:16 -04:00
Richard Feldman
81b005c33d Reproduce nested let bug 2019-06-12 21:25:15 -04:00
Richard Feldman
34229d3a29 Cut unnecessary stuff 2019-06-12 21:25:15 -04:00
Richard Feldman
6c0e34f5fc Use SmallVec for patterns 2019-06-12 21:25:15 -04:00
Richard Feldman
b034e8a486 Revert "Use immutable Vector in Expr"
This reverts commit 89eb88deace1eac2bebdf640ef00bdabf17fef6a.
2019-06-12 21:25:15 -04:00
Richard Feldman
1087a15d32 Use immutable Vector in Expr 2019-06-12 21:25:15 -04:00
Richard Feldman
064665c3b5 Add multiline_func test 2019-06-12 21:25:15 -04:00
Richard Feldman
21cc3c9333 Fix some variant parsing bugs 2019-06-12 21:25:15 -04:00
Richard Feldman
ae53e611c7 Remove parse_ prefix from parse tests 2019-06-12 21:25:15 -04:00
Richard Feldman
a9f5e258c6 Add failing test for indented if 2019-06-12 21:25:15 -04:00
Richard Feldman
5787fed8bd Rename test_parse module 2019-05-26 23:10:48 -04:00
Richard Feldman
d2fa6f003a Add more multi-arg function tests 2019-05-26 10:57:51 -04:00
Richard Feldman
edf2c2f9d0 Add test for calling function with multiple args 2019-05-26 01:26:14 -04:00
Richard Feldman
ca8fae6ca1 Fix function application and operator precedence 2019-05-26 01:24:57 -04:00