Commit Graph

9470 Commits

Author SHA1 Message Date
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
7ae610ad18 First (failed!) attempt at string interpolation 2019-06-12 21:25:16 -04:00
Richard Feldman
6bdff2b069 Add README 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
2872841f6e Introduce Ident alias 2019-06-12 21:25:16 -04:00
Richard Feldman
352ab5ed34 More syntax changes 2019-06-12 21:25:15 -04:00
Richard Feldman
9895e0c0ae Use () -> closure syntax 2019-06-12 21:25:15 -04:00
Richard Feldman
f4b43e43e2 Alternate syntaxes 2019-06-12 21:25:15 -04:00
Richard Feldman
4d27a274c6 Implement await demo 2019-06-12 21:25:15 -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
88f8325fb3 Hardcode Read and Echo 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
69f5046568 Prune dead code 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
c285c26c39 Fix eval tests 2019-06-12 21:25:15 -04:00
Richard Feldman
53a81c1e52 Eval with Evaluated type 2019-06-12 21:25:15 -04:00
Richard Feldman
b650012a74 Try taking &Expr even further. 2019-06-12 21:25:15 -04:00
Richard Feldman
f832827a66 Try moving to &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
878513b1ea Add match keyword 2019-06-12 21:25:15 -04:00
Richard Feldman
7cb0facacd Add pattern matching for variants 2019-06-12 21:25:15 -04:00
Richard Feldman
7aab332650 Add variants 2019-06-12 21:25:15 -04:00
Richard Feldman
1aaab2dc17 Commas separate closure params 2019-06-12 21:25:15 -04:00
Richard Feldman
ea4d876a90 Fix closure parser and actually use it 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
ecb67ab4cf Pass scope to If during eval 2019-06-12 21:25:15 -04:00
Richard Feldman
9cb93dfdd5 Add first-ever .roc file 2019-06-12 21:25:15 -04:00
Richard Feldman
fc58c5db0e Add basic CLI 2019-06-12 21:25:15 -04:00
Richard Feldman
2844687d79 Expose parse::parse_string 2019-06-12 21:25:15 -04:00
Richard Feldman
81ef0cbc7b Make expr displayable 2019-06-12 21:25:15 -04:00
Richard Feldman
974e8e9392 Switch some panics to Error(TypeMismatch)) 2019-06-12 21:25:15 -04:00
Richard Feldman
5dabc53c2b Add some eval tests 2019-05-26 23:11:05 -04:00
Richard Feldman
5787fed8bd Rename test_parse module 2019-05-26 23:10:48 -04:00
Richard Feldman
f7e8ebc6d8 Use skip_many 2019-05-26 11:05:55 -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
Richard Feldman
1819b9955f Functions can take mulitple args. 2019-05-26 01:09:36 -04:00
Richard Feldman
298716a925 Use Rc<Expr> in vars:HashMap 2019-05-24 02:28:41 -04:00
Richard Feldman
6ea7649c5f Introduce eval.rs 2019-05-24 02:13:45 -04:00
Richard Feldman
be7e65bc88 Introduce Bool and rename String to Str 2019-05-24 01:54:45 -04:00
Richard Feldman
46f281d399 Add im_rc 2019-05-24 01:54:10 -04:00
Richard Feldman
55020f6d9f Reduce Boxing for Apply 2019-05-22 22:04:30 -04:00
Richard Feldman
9b13df8fd7 Add a more complex let test 2019-05-22 22:02:44 -04:00
Richard Feldman
3b34c82b42 Introduce Closure 2019-05-22 22:02:31 -04:00