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
Folkert
127b64034e
cleanup
2021-05-01 20:28:43 +02:00
Folkert
3b443eef10
remove manual bitcasts
2021-05-01 20:26:18 +02:00
Folkert
b3772b72a1
remove code
2021-05-01 20:15:31 +02:00
Folkert
3b01902286
remove dead code
2021-05-01 20:04:58 +02:00
Folkert
d411d5dd7e
remove more code
2021-05-01 17:20:37 +02:00
Folkert
e5c2ece4f0
refactor some more
2021-05-01 16:55:08 +02:00
Folkert
1f20ce23bd
delete lines!
2021-05-01 16:50:19 +02:00
Folkert
586727f74a
list single in zig
2021-05-01 16:38:11 +02:00
Folkert
cd18b434ba
fix tests
2021-05-01 00:57:55 +02:00
Folkert
327d7b77b0
remove dead code
2021-05-01 00:47:23 +02:00
Folkert
a586626d7c
more bump
2021-05-01 00:27:22 +02:00
Folkert
a2f144f4db
bump set
2021-05-01 00:13:11 +02:00
Folkert
503d011c43
more bump
2021-05-01 00:04:56 +02:00
Folkert
58ba5c09fd
bump-allocate procs
2021-04-30 23:52:08 +02:00
Richard Feldman
bae11e4da5
Merge branch 'trunk' into parser
2021-04-29 21:50:04 -04:00
Richard Feldman
81014c3790
First-class Usv type
2021-04-29 21:41:04 -04:00
Richard Feldman
391a4f13db
Revise parser APIs a bit
2021-04-29 20:26:18 -04:00
Richard Feldman
2181558e69
Delete obsolete doc
2021-04-29 19:49:38 -04:00
Richard Feldman
d055a0e659
Revise parsing functions
2021-04-28 21:48:09 -04:00
Folkert
efc004b19a
use bumpmap in partialproc
2021-04-28 23:37:17 +02:00
Folkert
3290528d70
use bumpmap in record IR gen
2021-04-28 23:26:09 +02:00
Folkert
2d00dd528f
use bumpmap in substitution
2021-04-28 23:23:40 +02:00
Folkert
a6fc267449
make bumpmap new functions using a trait
2021-04-28 23:16:02 +02:00
Richard Feldman
e23d526a4c
Go back to monomorphic Str
2021-04-26 21:18:43 -04:00
Richard Feldman
63fe9e0f2e
Expose a bunch of things from Bytes
2021-04-26 08:07:18 -04:00
Richard Feldman
01bf309e38
Add parsePast functions
2021-04-26 07:57:54 -04:00
Richard Feldman
72d5cc6351
Add warning on Bytes.inStr
2021-04-26 01:05:42 -04:00
Richard Feldman
f56636ac7e
Revert "Try out NBO and RBO terminology"
...
This reverts commit 4c51ed2dd3
.
2021-04-26 01:02:46 -04:00
Richard Feldman
4c51ed2dd3
Try out NBO and RBO terminology
2021-04-26 00:43:58 -04:00
Richard Feldman
41ba015dcd
Drop host endianness helpers
2021-04-26 00:35:24 -04:00
Richard Feldman
59b4d65880
s/native/host endianness
...
The term "host" seems to be more commonly used.
2021-04-26 00:29:40 -04:00
Richard Feldman
2ef6594710
Remove Parser builtin module
2021-04-26 00:21:03 -04:00
Richard Feldman
3b1c9da544
Add Bytes builtin
2021-04-26 00:21:03 -04:00
Richard Feldman
bd1f0a39b6
Bool parser doesn't make sense
2021-04-26 00:21:03 -04:00
Richard Feldman
1780e2bf19
Try giving Str a type parameter
2021-04-26 00:21:03 -04:00
Richard Feldman
421a625515
Add List.startsWith and endsWith
2021-04-26 00:21:03 -04:00
Richard Feldman
0f2eb12aa8
Add Parser builtin docs
2021-04-26 00:21:03 -04:00
Richard Feldman
218dff19cc
Add Str.lines
2021-04-26 00:21:03 -04:00
Richard Feldman
7c50f3d5c4
Merge pull request #1236 from rtfeldman/list-join-zig
...
move List.join to zig
2021-04-25 17:52:22 -04:00
Folkert
42d065af45
move List.join to zig
2021-04-25 21:43:15 +02:00
Chadtech
be557d6147
Render label only record fields as they appear in the code
2021-04-25 14:12:47 -04:00
Chadtech
f7491cd9e9
Comply with clippy
2021-04-24 18:40:06 -04:00
Chadtech
09aad833d5
Do not show record type signature if it contains at least one private tag
2021-04-24 18:14:43 -04:00
Chadtech
6050776ff8
More while statements refactored to for loops
2021-04-24 18:14:31 -04:00
Chadtech
0a42a04765
Records in docs rendering
2021-04-24 18:06:41 -04:00
Richard Feldman
c77127e6fb
Merge pull request #1227 from rtfeldman/use-zig-types
...
Use zig types in LLVM codegen
2021-04-23 21:03:38 -04:00
Richard Feldman
b517528a09
Merge pull request #1226 from rtfeldman/expr-expect
...
Expr expect
2021-04-23 20:57:02 -04:00
Folkert
2319b33794
use zig list/str type
2021-04-23 16:24:36 +02:00
Folkert
41c1878d8d
use zig dict type
2021-04-23 15:19:15 +02:00
Folkert
b01377f868
save the stack
2021-04-23 11:49:32 +02:00
Folkert
95fbc15373
add test
2021-04-23 11:27:36 +02:00
Folkert
2dab9c81d1
use invoke
2021-04-23 11:22:32 +02:00
Folkert
6633f8ca9f
add ExpectTrue lowlevel
2021-04-23 10:16:30 +02:00
Folkert
01c5b0dd66
codegen expect to boolean not
2021-04-23 10:00:36 +02:00
Folkert
903583f1d4
implement basic type error reporting
2021-04-23 09:41:49 +02:00
Folkert
4dd0ee6543
constrain expect
2021-04-23 09:36:12 +02:00
Folkert
ed7906ccbb
fix canonicalization
2021-04-23 09:24:11 +02:00
Folkert
1d440fb5f6
another try
2021-04-23 09:09:09 +02:00
Richard Feldman
660437557b
Merge branch 'trunk' into validate-platform-signature
2021-04-22 22:01:34 -04:00
Richard Feldman
60be120fc1
Rename COPYRIGHT_DETAILS to LEGAL_DETAILS
...
Turns out GitHub's `Licensee` gem treats any file with the word
"copyright" in it as a potential license, and therefore doesn't
recognize and list Roc's license as UPL-1.0 because it thinks
there might be two licenses or something.
d274e47c71/lib/licensee/project_files/license_file.rb (L26)
2021-04-22 21:52:07 -04:00
Richard Feldman
f34a75f26e
Rename COPYRIGHT file to COPYRIGHT_DETAILS
...
This way, GitHub's license finder doesn't get confused.
(They use the `Licensee` Ruby gem, which looks for files like
LICENSE, which we have, but also COPYRIGHT - and it apparently
gets confused if it sees both.)
2021-04-22 21:41:11 -04:00
Folkert
700e7d9686
parse expect
2021-04-22 23:00:44 +02:00
Folkert
50942325b9
add expect
keyword
2021-04-22 21:17:09 +02:00
Folkert de Vries
15def2db65
Merge branch 'trunk' into validate-platform-signature
2021-04-22 21:14:53 +02:00
Folkert
7e9cea9283
hopefully fix data race
2021-04-22 16:14:27 +02:00
Folkert
ae6e99152f
store the requires
typed ident for later use
2021-04-22 14:12:36 +02:00