Commit graph

2127 commits

Author SHA1 Message Date
Richard Feldman
b3b37db2c0 Fix test_uniq_load 2020-11-23 00:24:40 -05:00
Richard Feldman
da328f9e78 Fix gen tests 2020-11-23 00:24:40 -05:00
Richard Feldman
88d2ad1ffc Use roc__ prefix for exposed app functions 2020-11-23 00:24:40 -05:00
Richard Feldman
c441471767 Add parse tests for platform headers 2020-11-23 00:08:50 -05:00
Richard Feldman
a8ae25697d Expose platform_header 2020-11-23 00:08:50 -05:00
Richard Feldman
1868051105 Allow for shorter app headers 2020-11-23 00:08:50 -05:00
Richard Feldman
ecfdadb5e3 Revert "Require packages and imports once again"
This reverts commit 119329dffc86edbb2bc0475dfcded905f0f19c04.
2020-11-23 00:08:50 -05:00
Richard Feldman
09d107e469 Require packages and imports once again 2020-11-23 00:08:49 -05:00
Richard Feldman
a7eb568267 Fix load tests 2020-11-23 00:08:49 -05:00
Richard Feldman
ce4469de80 Make packages and imports optional 2020-11-23 00:08:49 -05:00
Richard Feldman
3e01df2bcf Update parse tests to incorporate module headers 2020-11-23 00:08:49 -05:00
Richard Feldman
f5a480f799 Fix a test compilation error 2020-11-23 00:08:49 -05:00
Richard Feldman
eb6a7b51ff Use app path in output 2020-11-23 00:08:49 -05:00
Richard Feldman
a78434fd48 Finish introducing new header keywords 2020-11-23 00:08:49 -05:00
Richard Feldman
c2d8205bfb Reproduce fun rustmft bug 2020-11-23 00:08:49 -05:00
Richard Feldman
bf142c4c58 Drop RocStr when necessary 2020-11-22 22:41:23 -05:00
Richard Feldman
bc48f72760 Merge remote-tracking branch 'origin/trunk' into cstr 2020-11-22 22:29:34 -05:00
Richard Feldman
a306a9fcc3 Use pointers in fewer str.zig arguments 2020-11-22 22:15:26 -05:00
Richard Feldman
5eee74f209
Merge pull request #726 from rtfeldman/llvm-dce
DCE zig builtins
2020-11-22 22:13:10 -05:00
Folkert
b6433f872a DCE unused functions everywhere 2020-11-23 02:15:40 +01:00
Folkert
58246ad572 DCE zig-defined builtins that aren't used in user code 2020-11-23 02:01:57 +01:00
Chadtech
319ded66ca Return a bool instead of a u1 2020-11-22 18:24:49 -05:00
Sébastien Besnier
b36c2bf499 implement startsWith builtin using Zig 2020-11-22 21:48:42 +01:00
Chadtech
b615b0127c Fix Str.startsWith std definition 2020-11-22 14:00:01 -05:00
Chadtech
385d0fda9f Resolving conflicts with remote trunk 2020-11-22 13:54:13 -05:00
Richard Feldman
5ff2b04d1a Add len, is_small_str, and write_cstr to str.zig 2020-11-22 00:20:27 -05:00
Richard Feldman
2823fee56a Use const more in str.zig, fix some init & eq bugs 2020-11-22 00:20:19 -05:00
Richard Feldman
8177980087 Remove redundant get_small_str_ptr 2020-11-21 23:15:01 -05:00
Richard Feldman
4f765bae11 Empty string should always be all 0s 2020-11-21 23:15:01 -05:00
Richard Feldman
e0c97c9981 Run zig tests on CI 2020-11-21 23:14:49 -05:00
Folkert
2f1ca9decf cleanup 2020-11-21 22:54:57 +01:00
Folkert
8013af7e97 change representation of list/str 2020-11-21 22:50:33 +01:00
Folkert
52772df2c3 improve list allocation 2020-11-21 22:50:31 +01:00
Richard Feldman
a5fd9bff9d
Merge pull request #711 from rtfeldman/trailing-comma-record-annotation
Formatting record type annotation
2020-11-21 16:24:53 -05:00
Richard Feldman
97c42f8196
Merge pull request #720 from rtfeldman/repeated-concat-test
Comment in repeated Str.concat test
2020-11-21 14:58:35 -05:00
Sébastien Besnier
5562b986ce cargo fmt 2020-11-21 20:50:29 +01:00
Sébastien Besnier
0d9e3aa07b make clippy happy 2020-11-21 20:36:26 +01:00
Sébastien Besnier
d87b5bfd9f add failing tests 2020-11-21 20:36:26 +01:00
Sébastien Besnier
bfe219f307 fix some wrong comments 2020-11-21 20:36:26 +01:00
Sébastien Besnier
b1548ff4e8 refactor tag union and record type annotations formatting 2020-11-21 20:36:26 +01:00
Sébastien Besnier
52bace2c25 store the final comments in the AST for record & tag union annotations 2020-11-21 20:36:26 +01:00
Sébastien Besnier
c692319fb9 correctly format multiline record type annotation 2020-11-21 20:36:26 +01:00
Sébastien Besnier
f9666d6efe better code comments 2020-11-21 20:36:26 +01:00
Chadtech
72009b1276 Comment in now passing test 2020-11-21 14:15:58 -05:00
Chadtech
767a348812 Record references in can/expr before evaluating to runtime error 2020-11-21 14:07:09 -05:00
Richard Feldman
6f9097da56
Merge pull request #712 from rtfeldman/fix-region-parsing
Fix Region Parsing
2020-11-21 12:59:34 -05:00
Sébastien Besnier
932d9b1d16 fix region parsing 2020-11-21 15:57:12 +01:00
Folkert
1070b5c4b2 fix out-of-bounds write 2020-11-20 21:00:25 +01:00
Folkert
898a140f64 Merge remote-tracking branch 'origin/trunk' into str-split-small-str 2020-11-20 15:58:13 +01:00
Folkert
4db48d9f13 more clippy things 2020-11-19 22:20:00 +01:00