Commit graph

14474 commits

Author SHA1 Message Date
Richard Feldman
6294e77159 Remove canonical.rs for now 2019-06-19 21:33:10 -04:00
Richard Feldman
d743818f74 Rename test.roc to Example.roc 2019-06-19 21:33:01 -04:00
Richard Feldman
1c7595c678 Use Rc::clone over .clone() 2019-06-14 19:26:30 -04:00
Richard Feldman
0684929109 Revert "Try out a different cloning strategy"
This reverts commit f87a76c8fb.
2019-06-14 19:08:34 -04:00
Richard Feldman
f87a76c8fb Try out a different cloning strategy
The motivation was to try and get rid of the (**resolved).clone()
in a var lookup. Sadly, this didn't work.
2019-06-14 19:08:08 -04:00
Richard Feldman
125da613ce Disallow assigning to _ and {} 2019-06-14 19:07:46 -04:00
Richard Feldman
c3233a46fb Allocate less often 2019-06-14 18:30:10 -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
be930f8072 Fix multi newline case bug 2019-06-14 00:30:21 -04:00
Richard Feldman
23e42f27c1 min_indent should default to 0, not 1 2019-06-14 00:23:17 -04:00
Richard Feldman
3ce7b2006d Add failing test for case with two newlines 2019-06-14 00:07:35 -04:00
Richard Feldman
e1286ae526 Don't print anything on success. 2019-06-14 00:05:24 -04:00
Richard Feldman
32f19428ac Add some comments to main.rs 2019-06-14 00:05:17 -04:00
Richard Feldman
7165f55d6e Trim input from stdin 2019-06-13 22:48:41 -04:00
Richard Feldman
9fc30fbbc4 Update test.roc 2019-06-13 22:48:19 -04:00
Richard Feldman
8761873980 Fix displaying eval problems 2019-06-13 22:48:12 -04:00
Richard Feldman
9b4e974dc1 Fix string interpolation 2019-06-13 22:47:42 -04:00
Richard Feldman
e2175df5a2 Reproduce string interpolation bugs 2019-06-13 22:47:11 -04:00
Richard Feldman
140fa5ffa9 Reading from stdin works 2019-06-13 21:32:07 -04:00
Richard Feldman
1c3cf5f675 Progress on test.roc 2019-06-13 19:03:03 -04:00
Richard Feldman
abf3bf9df7 Get beginning of test.roc working 2019-06-13 18:44:22 -04:00
Richard Feldman
ee0a009630 Fix bug on arguments named i 2019-06-13 00:34:59 -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
bf463ae8a6 Fix failing function call case and parens 2019-06-13 00:03:12 -04:00
Richard Feldman
92f9a770a8 Reproduce failing function call case 2019-06-13 00:03:04 -04:00
Richard Feldman
c445557eef Revise when function_arg checks for keywords 2019-06-12 23:46:01 -04:00
Richard Feldman
11ea6359d2 Fix nonempty variant pattern match bug 2019-06-12 23:28:34 -04:00
Richard Feldman
b48eef79b2 Reproduce nonempty variant pattern match bug 2019-06-12 23:28:25 -04:00
Richard Feldman
25ca3d6800 Fix some failing case patterns 2019-06-12 23:19:32 -04:00
Richard Feldman
6ccdade335 Reproduce some failing case patterns 2019-06-12 23:19:16 -04:00
Richard Feldman
1e70070d3d Attempt the '-' on numbers 2019-06-12 23:18:40 -04:00
Richard Feldman
6afeedf10e Add support for pattern matching on numbers 2019-06-12 22:49:36 -04:00
Richard Feldman
0062e83d03 Revert "Attempt to genericize number_literal"
This reverts commit cafc0dd4e8.
2019-06-12 22:45:18 -04:00
Richard Feldman
cafc0dd4e8 Attempt to genericize number_literal 2019-06-12 22:45:12 -04:00
Richard Feldman
e82596bb04 Fix 2-clause case parsing 2019-06-12 22:08:42 -04:00
Richard Feldman
62cd13e845 Reproduce failing case-expression parse 2019-06-12 22:07:30 -04:00
Richard Feldman
34b9df8281 Shrink smallvecs 2019-06-12 22:02:34 -04:00
Richard Feldman
20ce0548cc Fix case parsing bug 2019-06-12 21:55:35 -04:00
Richard Feldman
3f8dc42527 Add test to repro case parsing bug 2019-06-12 21:55:28 -04:00
Richard Feldman
c30504f332 Rename match-expression to case-expr 2019-06-12 21:55:10 -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
6d8907a7bb Add enclosed closure syntax 2019-06-12 21:25:16 -04:00