Commit graph

295 commits

Author SHA1 Message Date
rvcas
8df5d5c13c feat(parse): support capturing a str in Pattern::Underscore 2020-11-17 21:53:49 -05:00
rvcas
84c49040b2 feat(List): redudant mapping of Symbol::LIST_SUM 2020-11-15 12:34:58 -05:00
rvcas
1c8bb74268 feat(List): add sum builtin 2020-11-15 11:08:27 -05:00
Sébastien Besnier
58acc59b01 correctly parse trailing commas in record 2020-11-13 19:02:26 +01:00
Sébastien Besnier
6ad1bb233a add TrailingComma to Record & little formatter refactor 2020-11-13 19:01:46 +01:00
Chad Stearns
c9e3531ecd Merge branch 'trunk' of github.com:rtfeldman/roc into str-split 2020-11-13 00:58:37 -05:00
Folkert
815b942f29 cleanup 2020-11-13 01:59:09 +01:00
Folkert
c05ec12be0 report a Foo.Bar malformed identifier 2020-11-12 20:48:34 +01:00
Folkert
bde82c3bb6 add Store constraint that does not report errors 2020-11-12 15:47:56 +01:00
Folkert
55b26277ca properly sort recursive definitions 2020-11-12 00:32:45 +01:00
Chad Stearns
4f54b87817 Merge branch 'trunk' of github.com:rtfeldman/roc into str-split 2020-11-11 02:14:31 -05:00
Folkert
cf80e2852f add test for transitive alias import 2020-11-11 01:20:30 +01:00
Folkert
b62de8fc3c only aliases without type arguments can be host-exposed (for now) 2020-11-10 13:29:25 +01:00
Folkert
33f65caedd alias referenced by another alias is not unused! 2020-11-09 22:22:00 +01:00
Folkert
0b19c594c5 improve compare/Order 2020-11-09 21:21:14 +01:00
Folkert
063492680f recursive functions cannot capture other recursive functions from their LetRec 2020-11-09 15:54:02 +01:00
Folkert
4868c0bd25 fix problem with patterns and optional record fields 2020-11-09 01:04:40 +01:00
Sébastien Besnier
66392eeeaf other parsing adjustment! 2020-11-08 13:48:19 +01:00
Sébastien Besnier
420e1c84e0 make clippy happy 2020-11-08 13:48:19 +01:00
Sébastien Besnier
1c5f381c09 cargo fmt 2020-11-08 13:48:19 +01:00
Sébastien Besnier
8ac078936a add some tests around definition parsing -- all passing at the first time ! 2020-11-08 13:48:19 +01:00
Sébastien Besnier
a6a4750501 fix parsing issue 2020-11-08 13:48:19 +01:00
Richard Feldman
6db4bd6ed4 Drop spaces around fields in canonicalization 2020-11-08 13:48:19 +01:00
Richard Feldman
5f82372899 Fix AnnotatedBody desugaring 2020-11-08 13:48:19 +01:00
Richard Feldman
6c01d02de0 Make ann_pattern and ann_type references 2020-11-08 13:48:19 +01:00
Richard Feldman
b0e4f4c97f Reproduce nested_unannotated body 2020-11-08 13:48:19 +01:00
Richard Feldman
93867b1a1b Improve some error reporting 2020-11-08 13:48:19 +01:00
Richard Feldman
77662970e9 Drop debug println 2020-11-08 13:48:19 +01:00
Sébastien Besnier
01b9b4a08d update nested test 2020-11-08 13:45:47 +01:00
Sébastien Besnier
ad9ff3b3a9 add nested tests 2020-11-08 13:45:47 +01:00
Sébastien Besnier
6dbde806d6 cargo-fmt 2020-11-08 13:43:11 +01:00
Sébastien Besnier
f4c1af0f19 test_can pass 2020-11-08 13:43:11 +01:00
Sébastien Besnier
014131dabe handle AnnotatedBody everywhere. It compiles now! 2020-11-08 13:43:11 +01:00
Chad Stearns
5e0e3da3b7 Merging in remote trunk 2020-11-08 07:01:07 -05:00
Jared Ramirez
74b09605a7
Merge branch 'trunk' into builtin-count-graphemes 2020-11-07 18:49:29 -06:00
Chad Stearns
d41e940b7f Merge branch 'trunk' of github.com:rtfeldman/roc into str-split 2020-11-07 02:07:52 -05:00
Folkert
7cfe5efe1b Merge remote-tracking branch 'origin/trunk' into generate-effects-module 2020-11-07 00:30:23 +01:00
Jared Ramirez
63308d90e1 Add Str.countGraphemes 2020-11-06 16:54:28 -06:00
Richard Feldman
6f4d727b6f
Merge pull request #646 from rtfeldman/add_list_contains
Add List.contains
2020-11-06 08:49:59 -05:00
Richard Feldman
401c3319a0
Merge branch 'trunk' into optional-fields-in-exprs 2020-11-05 20:58:51 -05:00
Folkert
eae797a47a introduce ForeignSymbol wrapper 2020-11-05 23:43:32 +01:00
Folkert
3cd132dd51 introduce foreign call 2020-11-05 23:35:56 +01:00
lrosa007
9269f1d8a7 feat(List): start contains function 2020-11-04 21:09:15 -05:00
Folkert
4c5a5dc6a2 thread things through 2020-11-04 21:03:43 +01:00
Folkert
33820dd82e record alias data in Annotation 2020-11-04 20:06:57 +01:00
Folkert
2acbfa91f1 remove def_symbol field 2020-11-04 14:59:41 +01:00
Folkert
c09b66a9cc add HostExposedAlias 2020-11-04 13:19:57 +01:00
Sébastien Besnier
619cabe1b8 add reporting tests 2020-11-04 10:51:34 +01:00
Sébastien Besnier
b2e6ebd32e add tests 2020-11-04 09:51:37 +01:00
Sébastien Besnier
5273896981 working feature 2020-11-04 09:49:19 +01:00