Commit graph

209 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
d9c1e23105 Update examples to new closure syntax 2019-07-07 11:06:57 -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
38a4ac5c5c Disable eval for now 2019-07-06 13:39:20 -04:00
Richard Feldman
6abec2b0f2 Drop unnecessary parens 2019-07-06 11:19:37 -04:00
Richard Feldman
78df28c463 Add cli/README.md 2019-06-23 19:19:06 -04:00
Richard Feldman
77f3199ec9 Move examples into cli/examples 2019-06-23 19:16:41 -04:00
Richard Feldman
38d86fc9f3 Add a recursive Fibonacci example 2019-06-23 19:12:52 -04:00
Richard Feldman
15a87b64a3 Add comparison operators 2019-06-23 19:09:07 -04:00
Richard Feldman
e7f792cf1d Update some comments 2019-06-23 18:55:15 -04:00
Richard Feldman
f7cfe1d396 Accept arbitrary filenames in roc-cli 2019-06-23 18:55:10 -04:00
Richard Feldman
9892a27f21 Fix example 2019-06-22 10:26:34 -04:00
Richard Feldman
fbc050fd59 Add test for inline comment inside assignment 2019-06-22 10:17:30 -04:00
Richard Feldman
77d9a13b10 Update Example.roc 2019-06-22 10:17:20 -04:00
Richard Feldman
f6096d629d Update Cargo.lock 2019-06-22 10:17:11 -04:00
Richard Feldman
8771f400a4 Add some more fast_fraction tests 2019-06-21 22:04:40 -04:00
Richard Feldman
86bc4e51db Rename stack_fraction to fast_fraction 2019-06-21 22:02:05 -04:00
Richard Feldman
c8d6be6684 Drop dead code 2019-06-21 22:01:54 -04:00
Richard Feldman
1621c61601 Add a stack_fraction test 2019-06-21 21:59:54 -04:00
Richard Feldman
2e618031d4 Add some Froms and Hash to Fraction 2019-06-21 21:59:47 -04:00
Richard Feldman
ae1a650b4d Trying out stack_fraction 2019-06-21 21:37:50 -04:00
Richard Feldman
13c9d41b95 Add some more fraction tests 2019-06-20 22:34:31 -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
b6d9261508 Add block comments 2019-06-19 22:00:27 -04:00
Richard Feldman
3e041b83f0 Add failing test for block comments 2019-06-19 22:00:20 -04:00
Richard Feldman
bb025859b8 Add inline comments. 2019-06-19 21:43:35 -04:00
Richard Feldman
d970944a4f Add failing test for inline comments 2019-06-19 21:43:35 -04:00
Richard Feldman
e96d3800ab Fix Rc vs clone 2019-06-19 21:37:55 -04:00
Richard Feldman
1556cf1fc9 Drop smallvec 2019-06-19 21:37:48 -04:00
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