Commit graph

3679 commits

Author SHA1 Message Date
Brendan Hansknecht
e56c46ff54 enable record updating tests since they already pass 2021-05-15 23:26:59 -07:00
Brendan Hansknecht
6a38ec03ed enable returning structs
That being said the support is very limited. It really only supports
single field structs and the special case of 2 ints. I realized that
general support for returning structs requires a calling conv extension
for returning them. Instead of adding all of the calling conv versions,
I just added a few basic cases that are shared accross calling conv. It
turns out that the calling conv extension is quite detailed for how it
works in Arm. X86 isn't too detailed overall.
2021-05-15 23:01:23 -07:00
Brendan Hansknecht
ba58e1bbf4 expand supported record tests 2021-05-15 21:17:47 -07:00
Brendan Hansknecht
210004529d float and nested records to the dev backend 2021-05-15 21:05:51 -07:00
Brendan Hansknecht
950d380ea0 Add records to the dev backend 2021-05-15 20:18:04 -07:00
Eric Henry
eda462c6e9 implement list.concat in zig 2021-05-08 14:39:06 -04:00
Richard Feldman
ab8cc95c2b Disable clippy rule for manual_map 2021-05-07 08:44:44 -04:00
Folkert
fecb83b9c2 fixes 2021-05-07 11:00:15 +02:00
Folkert
b5c655c84d add constraint validation code (currently unused) 2021-05-05 21:35:49 +02:00
Folkert
86ffd430d7 introduce missing var 2021-05-05 21:35:39 +02:00
Folkert
48f392f372 fix bad test examples using unbound type alias variables 2021-05-05 19:54:10 +02:00
Folkert
1ac66a8fee attempt to make examples more generic 2021-05-05 16:00:30 +02:00
Folkert
2ca6f0107a re-enable rose tree test 2021-05-05 15:18:26 +02:00
Folkert
13dfa79c5d re-enable rigid test 2021-05-05 15:14:30 +02:00
Folkert
b76ea0b9d9 re-enable test 2021-05-05 15:13:33 +02:00
Folkert
31647f61f9 enable new test 2021-05-05 15:11:30 +02:00
Folkert
0ec1c49042 slightly optimize rank calculation 2021-05-05 15:02:52 +02:00
Folkert
5372c45cdd no manual rank hacking please 2021-05-05 14:49:54 +02:00
Folkert
149ddf7309 add test case 2021-05-05 14:49:00 +02:00
Folkert
b02569646f add Debug instance 2021-05-05 14:06:31 +02:00
Folkert
61ffe687ce introduce LambaSet variables 2021-05-05 13:54:21 +02:00
Richard Feldman
b775b39fe4
Merge pull request #1264 from rtfeldman/num-too-general
Fix wildcard rigid issue
2021-05-03 21:26:15 -04:00
Folkert
82aa5c766d fix gen_primitives tests 2021-05-03 21:22:21 +02:00
Folkert
e69c512312 fix other reporting wildcard tests 2021-05-03 20:47:20 +02:00
Folkert
b4385f8775 add tests for error message 2021-05-03 20:42:47 +02:00
Folkert
9b0e14ef4c treat wildcards as rigids 2021-05-03 20:39:29 +02:00
Basile Henry
f6179404d1 Remove dependency on test module 2021-05-03 15:21:55 +02:00
Richard Feldman
29633f03d1 Merge remote-tracking branch 'origin/trunk' into module-level-documentation 2021-05-02 22:20:41 -04:00
Richard Feldman
83dde26cd0 Fix Str.startsWithCodePoint docs 2021-05-02 22:16:58 -04:00
Richard Feldman
465c5fa18a
Merge pull request #1260 from rtfeldman/parse-str
implement startsWithCodePoint
2021-05-02 22:15:53 -04:00
Chadtech
d1a18c8b6a Removed module docs and added detatched doc as a kind of doc entry 2021-05-02 16:34:48 -04:00
Chadtech
53c2a87161 Remove dbg 2021-05-02 14:38:00 -04:00
Chadtech
ad4402a67d Figure out module documentation by reading through the comments or new lines from the SpaceBefore the first entry to the module 2021-05-02 14:33:14 -04:00
Chadtech
0e39675d68 Add Usv type to Str exports, and reformat Str interface generally 2021-05-02 14:31:17 -04:00
Chadtech
cf06eb8737 Add Bytes type to Bytes.roc 2021-05-02 14:29:57 -04:00
Folkert de Vries
be36fe7194
Merge branch 'trunk' into parse-str 2021-05-02 19:33:41 +02:00
Folkert
c071cfba13 implement startsWithCodePoint 2021-05-02 19:26:08 +02:00
Richard Feldman
4533ee034c Add Str.chompCodePoint 2021-05-02 12:15:14 -04:00
Richard Feldman
9351dc3d14 Revise Str.parseGrapheme docs 2021-05-02 12:10:39 -04:00
Richard Feldman
0f5958781f Add Str.startsWithCodePoint and Str.parseCodePoint 2021-05-02 12:10:39 -04:00
Richard Feldman
4d1571c39d Drop Num.endi
It's [not portable](https://doc.rust-lang.org/std/primitive.u32.html#method.to_ne_bytes),
and apparently (in a Rust discussion somewhere) it's been said that the
host endianness is very rarely useful in user code. Given all that, it seems
reasonable to leave it up to platforms to expose it (or not).
2021-05-02 12:10:39 -04:00
Richard Feldman
e5ebf9c4ef Add Byte Order Mark concept 2021-05-02 12:10:39 -04:00
Richard Feldman
877cc328d2 Move things into roc/bytes and roc/unicode 2021-05-02 12:10:39 -04:00
Folkert
f0070e7464 remove field from procs; pass separately 2021-05-02 15:28:53 +02:00
Folkert
cd1103df64 bumpalo allocator sadness; revert later 2021-05-02 01:09:16 +02:00
Folkert
2032ef9b52 refactor/optimize loop in ir codegen 2021-05-02 01:08:53 +02:00
Folkert
839095942d reallocate in strings 2021-05-01 23:16:34 +02:00
Folkert
b79230c069 refactor reallocate 2021-05-01 23:16:34 +02:00
Richard Feldman
7f5a046edb
Re-comment-out debug call 2021-05-01 16:12:46 -04:00
Folkert
314b7e41fd use realloc in List.append 2021-05-01 22:01:18 +02:00