Commit graph

451 commits

Author SHA1 Message Date
Folkert
1a71b8bac7 define Str.concat in zig 2020-12-01 21:36:33 +01:00
Folkert
1589e688b3 use the zig formatter 2020-12-01 21:26:37 +01:00
Folkert
92544e5b07 link in libc when running zig tests 2020-12-01 21:24:37 +01:00
Richard Feldman
e6fd9cd884
Merge branch 'trunk' into rvcas/list_functions 2020-11-24 20:20:51 -05:00
rvcas
f7bd803509 feat(Num): rename Float to F64 2020-11-24 10:25:21 -05:00
rvcas
8feab843ea feat(List): add walk function and fix walkBackwards 2020-11-24 09:01:03 -05:00
rvcas
d9e906b8fb feat(List): rename walkRight to walkBackwards 2020-11-23 19:39:30 -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
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
8013af7e97 change representation of list/str 2020-11-21 22:50:33 +01:00
Folkert
1070b5c4b2 fix out-of-bounds write 2020-11-20 21:00:25 +01:00
Chad Stearns
a9f8258f0a Extra str.zig test (but the tests cannot be ran right now) 2020-11-16 02:06:10 -05:00
Chad Stearns
a3720e6c3d Fixed algorithm problem in Str.split, that would drop the final str in the return list if it was empty 2020-11-16 02:04:55 -05:00
Chad Stearns
2bc1e73042 Merge branch 'trunk' of github.com:rtfeldman/roc into str-split-small-str 2020-11-15 19:25:09 -05:00
Chad Stearns
8b0957a424 Fix and clean up zig small str init 2020-11-15 19:24:13 -05:00
rvcas
1c8bb74268 feat(List): add sum builtin 2020-11-15 11:08:27 -05:00
Chad Stearns
4ac5d5ffd5 Non-functional, but apparently complete small str initialization for Zig RocStr 2020-11-15 03:48:36 -05:00
Chad Stearns
36789e2582 More Str.split tests 2020-11-11 02:09:44 -05:00
Chad Stearns
58f0c48338 Str.split works for big str 2020-11-08 15:01:52 -05:00
Chad Stearns
b4ecf3c12f Make zig builtins recompilation sensitive to all zig files 2020-11-08 15:01:08 -05:00
Chad Stearns
9bedb818cb Fix spelling error in bitcode function name 2020-11-08 13:04:13 -05:00
Chad Stearns
5e0e3da3b7 Merging in remote trunk 2020-11-08 07:01:07 -05:00
Richard Feldman
53bec064f3
Fix some typos in comments 2020-11-07 22:04:32 -05:00
Jared Ramirez
430666a948 Fix cargo clippy 2020-11-07 15:29:53 -06:00
Chad Stearns
006bc6163b Fix typo from segements to segments 2020-11-07 02:26:41 -05:00
Chad Stearns
3e03c1fb93 Small clean ups 2020-11-07 02:26:23 -05:00
Chad Stearns
d41e940b7f Merge branch 'trunk' of github.com:rtfeldman/roc into str-split 2020-11-07 02:07:52 -05:00
Jared Ramirez
11fad7a27d Update bitcode docs 2020-11-06 16:54:28 -06:00
Jared Ramirez
e112a406a2 Fix countGrapheme wiring; Reorganize zig builtins; Streamline how we export zig function 2020-11-06 16:54:28 -06:00
Jared Ramirez
f34235e050 Fix countGrapheme args borrowing 2020-11-06 16:54:28 -06:00
Jared Ramirez
63308d90e1 Add Str.countGraphemes 2020-11-06 16:54:28 -06:00
Folkert
377e57bed9 fix comment 2020-11-05 13:56:25 +01:00
Folkert
b4852c0f4f fix uniqueness signature 2020-11-05 13:49:09 +01:00
lrosa007
9269f1d8a7 feat(List): start contains function 2020-11-04 21:09:15 -05:00
Chad Stearns
c412a8e0db Merge in remote trunk 2020-11-01 11:38:44 -05:00
lrosa007
bd696e1f6f feat(builtins): Num.asin : Float -> Float 2020-11-01 09:54:00 -05:00
lrosa007
4da2d7f101 feat(builtins): Num.acos : Float -> Float 2020-11-01 09:27:42 -05:00
Folkert
51506c11cb Merge remote-tracking branch 'origin/trunk' into fix-alias-inference 2020-10-30 22:45:52 +01:00
Folkert
9e981c264e fix clippy issues 2020-10-30 22:28:55 +01:00
Folkert
cba841601b fix some uniqueness issues 2020-10-30 01:50:57 +01:00