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
Anton-4
5bd776f972
debugging inline comment bug
2021-12-01 16:57:28 +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
Joshua Warner
c0abf86f01
Fix indentation within parens
2021-11-30 17:55:50 -08:00
Joshua Warner
3228a23c98
Fix formatting of if as an left-hand-side of an operator
2021-11-30 17:53:26 -08:00
Joshua Warner
fdeafe4bab
Make assert output more understandable
2021-11-30 17:48:24 -08:00
Brian Carroll
6b30ab79ac
Fix release build of Wasm backend
2021-12-01 00:03:01 +00:00
Folkert
bec74c36c5
refactor passed (to higher order lowlevel) funcion
2021-11-30 21:50:27 +01:00
Richard Feldman
68e206f42c
Merge pull request #2108 from rtfeldman/implement_num_to_str
...
Implement Num.toStr
2021-11-30 15:34:39 -05:00
rvcas
40090f20e6
test: update tests to use Num.toStr
2021-11-30 14:56:08 -05:00
rvcas
00bd77bf1d
chore: update builtin docs
2021-11-30 14:55:41 -05:00
rvcas
f995a07029
feat: Num.toStr
...
* add type for Num.toStr
* create new lowlevel
* delete types and Symbol for fromInt and fromFloat
* leave LowLevel::{StrFromFloat,StrFromInt}
* match on LowLevel::NumToStr and figure out the layout to decide
which build function to delegate to
2021-11-30 14:52:06 -05:00