Commit graph

6629 commits

Author SHA1 Message Date
satotake
f5cc68de4a reduce test_cvt_help cases 2021-12-05 12:34:56 +00:00
satotake
10af89654b add x86_64 Num.toFloat support for gen_dev 2021-12-05 12:32:16 +00:00
Joshua Warner
e3f2f8d9a4 keep indent state in fmt Buf 2021-12-04 18:26:32 -08:00
Brendan Hansknecht
a7725a81d5 Fix string argument loading and refcount functions 2021-12-04 14:46:02 -08:00
Brendan Hansknecht
6205816db4 Get refcounting working 2021-12-04 10:43:45 -08:00
Brendan Hansknecht
c11484e968 add Num.Gte 2021-12-04 10:00:22 -08:00
Brendan Hansknecht
5cb682140d ignore empty struct loading 2021-12-04 09:59:56 -08:00
Brian Carroll
1fccd5bede Suppress Clippy error 2021-12-04 10:04:19 +00:00
Richard Feldman
e872d00b13
Merge pull request #2128 from rtfeldman/joshuawarner32/check-format-stable
Check that formatting is stable/idempotent
2021-12-03 22:53:30 -05:00
Joshua Warner
4bbe1d308a rename expect_format_helper and add comment 2021-12-03 19:32:44 -08:00
Joshua Warner
5d3d4467c1 Fix indentation & stability in with formatting 2021-12-03 13:33:25 -08:00
Folkert
eaefb56994 make some helper functions non-mut 2021-12-03 21:50:39 +01:00
Folkert
3291cc680e use Cell, remove threading of identids 2021-12-03 21:50:26 +01:00
Folkert
47840a4e65 use env through backend, preventing a double borrow 2021-12-03 20:49:51 +01:00
Folkert
edf113513c add helper methods for layout -> string conversion in dev backend 2021-12-03 20:49:09 +01:00
Anton-4
e50fb25b38 forgot about Aarch64 2021-12-03 20:03:45 +01:00
Anton-4
4427779c7a set zig builtins target for compatibility 2021-12-03 19:57:19 +01:00
Joshua Warner
270cc49867 Also check formatting is stable in tests; ignore a test that's invalid / incorrect 2021-12-02 17:46:50 -08:00
rvcas
bc5b1abcba feat(Str.toNum): support decimal 2021-12-02 15:35:34 -05:00
rvcas
d8a3a961bf fix: remove first arg input: T from parseFloat in zig 2021-12-02 15:15:14 -05:00
rvcas
b58a965e08 test(Str.toNum): add float test case 2021-12-02 15:13:39 -05:00
Folkert
d6ed2147ae basic working test case 2021-12-02 20:30:58 +01:00
rvcas
8a21b42c20 feat: check errorcode in returned record for a value greater than 0 2021-12-02 14:06:29 -05:00
Anton-4
58f3559c98 consistent result type signatures 2021-12-02 17:49:04 +01:00
Brian Carroll
e088eceb29 Generate refcounting procs in gen_dev 2021-12-02 15:41:09 +00:00
Brian Carroll
d0ef1e5b36 Route IdentIds to refcount proc generator in dev backend 2021-12-02 09:58:34 +00:00
Richard Feldman
4e91ce79de
Merge pull request #2121 from rtfeldman/optimize-alias-to-var
optimize alias to var conversion
2021-12-01 22:08:59 -05:00
Richard Feldman
064dc12145
fix typo in comment 2021-12-01 22:06:03 -05:00
Richard Feldman
23fda0819f
Merge pull request #2112 from rtfeldman/joshuawarner32/fix-defs-indenting
Fix fmt_spaces indenting in the context of 3 or more newlines
2021-12-01 21:58:58 -05:00
Richard Feldman
ed40a8fc1c
Merge pull request #2114 from rtfeldman/joshuawarner32/fix-det-indentation
Fix indentation within parens
2021-12-01 19:38:07 -05:00
Joshua Warner
6edb376fdd Modify test to make the problem clear 2021-12-01 16:14:27 -08:00
Joshua Warner
c6116ba3ca Fix fmt_spaces indenting in the context of 3 or more newlines 2021-12-01 16:14:27 -08:00
Joshua Warner
8ab7b121eb Use newline in places where it should obviously be used 2021-12-01 16:14:27 -08:00
Brian Carroll
b193483756 Refactor contents of gen_dev's main loops into helper functions 2021-12-01 22:36:43 +00:00
rvcas
d6ab0b6aa4 fix: bitcode functions needed the str namespace not num 2021-12-01 16:40:56 -05:00
rvcas
0d74daf7d9 feat: match on a Union Layout and use index access to get the num layout 2021-12-01 16:25:24 -05:00
rvcas
ba9d01773b fix: result holds a num_type 2021-12-01 16:25:00 -05:00
rvcas
3104406956 feat: add the type def for Str.toNum 2021-12-01 16:12:55 -05:00
Anton-4
e63701c5d1 trying to make Str.toNum work for Ints 2021-12-01 20:37:21 +01:00
Anton-4
2e21fd0cb9 Merge branch 'str-to-num' of github.com:rtfeldman/roc into str_to_num 2021-12-01 19:43:01 +01:00
Anton-4
c63c69f1ef prep merge with Folkert's branch 2021-12-01 19:42:22 +01:00
Folkert
27269faa0b optimize alias to var conversion 2021-12-01 18:39:45 +01:00
Brian Carroll
72fa6217fb Refactor wasm lowlevels to make it easier to add more 128-bit ops 2021-12-01 15:09:23 +00:00
Folkert
69fc1ad7e7 sketch of StrToNum 2021-12-01 15:33:16 +01:00
Anton-4
eaf4e57759 started on Str.toNum 2021-12-01 15:15:30 +01:00
Richard Feldman
e6bec46898
Merge pull request #2109 from rtfeldman/refactor-passed-function
refactor passed (to higher order lowlevel) funcion
2021-12-01 08:17:39 -05:00
Brian Carroll
a3827d6636
Merge pull request #2071 from rtfeldman/refcount-mono-ir
Start generating refcounting code as mono IR
2021-12-01 12:59:16 +00:00
Folkert de Vries
d37ddeb162
Merge pull request #2113 from rtfeldman/joshuawarner32/fix-indentation-within-parens
Fix formatting of if as an left-hand-side of an operator
2021-12-01 13:38:22 +01:00
Folkert de Vries
1c7671c9ab
Merge pull request #2111 from rtfeldman/joshuawarner32/multiline-string-asserts
Make assert output for fmt+parse tests more understandable
2021-12-01 13:35:20 +01:00
Folkert
834ba77046 missed a bool 2021-12-01 12:53:47 +01:00