Commit graph

5543 commits

Author SHA1 Message Date
Theo Felippe
10eab4b785 implemented Result.isErr 2021-11-13 08:29:40 +00:00
Folkert de Vries
639b9616d3
Merge branch 'trunk' into joshuawarner32/refactor-E-names 2021-11-13 00:12:16 +01:00
Folkert de Vries
ea05d94851
Merge branch 'trunk' into wasm-more-tests 2021-11-12 23:17:39 +01:00
Richard Feldman
b6d223cb33
Merge pull request #1959 from rtfeldman/fix-ld-on-macos-versions-without-path-number
get_macos_version() can return string with trailing newline
2021-11-12 11:27:23 -08:00
Brian Carroll
33109006c2 Fix bugs in Ret statement 2021-11-12 17:51:50 +00:00
Brian Carroll
daf6771bf5 Shorten the name of the Symbol for temporary Wasm values 2021-11-12 17:51:50 +00:00
Brian Carroll
4b3538dc58 Simplify CodeBuilder::call 2021-11-12 17:51:50 +00:00
Brian Carroll
3a751aa3e8 Cheap optimisation for boolean conditions in Switch statements 2021-11-12 17:51:50 +00:00
Brian Carroll
78a7e45b8f Fix a type error in Switch statement condition 2021-11-12 17:51:45 +00:00
Brian Carroll
7f633c107f Fix a bug in our model of the Wasm VM stack 2021-11-12 17:44:31 +00:00
Brian Carroll
86403b4a2f Enable some gen_compare tests for wasm 2021-11-12 17:44:31 +00:00
Brian Carroll
b77563867f Enable some gen_primitive tests for wasm 2021-11-12 17:44:31 +00:00
Joshua Warner
9a74ca441d Name all "error" enums in the parser starting with E 2021-11-12 08:38:29 -08:00
Joost Baas
264d8e8a9d
Merge branch 'trunk' into fix-ld-on-macos-versions-without-path-number 2021-11-12 12:36:26 +01:00
Theo Felippe
356e36b38a Merge branch 'trunk' into builtin-result-is-ok 2021-11-12 10:13:43 +00:00
Theo Felippe
48781d617a fixed formatting 2021-11-12 10:11:49 +00:00
Theo Felippe
cb9ec369fe working implementation 2021-11-12 10:08:39 +00:00
Joshua Warner
8a54bb6f6b fmt 2021-11-11 19:15:07 -08:00
Joshua Warner
4df0880e7a Commit local changes (whoops!) 2021-11-11 18:57:26 -08:00
Joshua Warner
04d4a8ca79 Introduce Collection as a general abstraction in the ast 2021-11-11 14:49:33 -08:00
Joost Baas
4ed25fb351 make sure get_macos_version() returns string without newline 2021-11-11 21:39:39 +01:00
Theo Felippe
84af26d813 added placeholder implementation 2021-11-11 19:13:42 +00:00
Theo Felippe
dfd14f8e49 added gen test 2021-11-11 08:23:40 +00:00
Joshua Warner
0e9d7d8b7b Fix clippy lints due to clones on now-Copy types 2021-11-10 19:55:11 -08:00
Joshua Warner
6a694b7772 Use collection_trailing_sep_e for packages decl, to allow trailing commas there 2021-11-10 18:49:19 -08:00
Folkert
acb26002c8 fix repl 2021-11-10 23:36:16 +01:00
Folkert de Vries
a85ac128ee
Merge branch 'trunk' into roc-call-result-return-small-type 2021-11-10 22:36:40 +01:00
Folkert
5d7b4b7ad0 change roc call result; adding an extra field for the error message pointer
When the returned value was smaller than a pointer, there was no space for the error message pointer.
2021-11-10 22:14:54 +01:00
Brian Carroll
2f5d43cf82 Merge branch 'trunk' of github.com:rtfeldman/roc into wasm-more-lowlevels 2021-11-10 20:19:29 +00:00
Brian Carroll
830003c9a3 Change wasm opcodes to an enum 2021-11-10 20:18:55 +00:00
Brian Carroll
86de39e7f8 Add missing lowlevel from match 2021-11-10 20:11:27 +00:00
Folkert
33e8f9a6b7 Merge remote-tracking branch 'origin/trunk' into cleanup-im-dependency 2021-11-10 17:19:54 +01:00
Brian Carroll
3d4aeedccb Merge branch 'trunk' of github.com:rtfeldman/roc into wasm-more-lowlevels 2021-11-10 15:46:42 +00:00
Brian Carroll
0ce0e337cd Enable more tests 2021-11-10 15:46:34 +00:00
Brian Carroll
06a6e8545b FIXME for wasm NumRound 2021-11-10 15:32:45 +00:00
Folkert de Vries
b3a663a741
Merge branch 'trunk' into builtins-list-sublist 2021-11-10 16:28:58 +01:00
Folkert
2262dcb3f9 clean up some other dependencies 2021-11-10 16:25:03 +01:00
Folkert
5632e3159d remove im dependency where not needed 2021-11-10 16:00:22 +01:00
satotake
c0a362dc1a fix solve_expr test 2021-11-10 14:32:22 +00:00
Brian Carroll
7c95189e4a Get lots of Num lowlevel ops working 2021-11-10 14:21:32 +00:00
satotake
9f5d3f521b Implement List.sublist 2021-11-10 13:16:57 +00:00
Folkert de Vries
eb1b6d97bf
Merge branch 'trunk' into str_trim_left 2021-11-10 14:06:01 +01:00
Folkert de Vries
56c7318cd9
Merge branch 'trunk' into zig9-to-zig 2021-11-10 12:37:39 +01:00
Brian Carroll
6421ff07a5 Use shorter notation for enums in lowlevel module 2021-11-10 10:47:01 +00:00
Brian Carroll
ec03b7b12a Move lowlevel calls to their own module of gen_wasm 2021-11-10 10:44:17 +00:00
Brian Carroll
51b6076322 stack pointer: use constants & add a comment 2021-11-10 09:20:31 +00:00
Nathan Bleigh
2dd86b1f18 Updates zig9 to zig
Referenced in https://github.com/rtfeldman/roc/pull/1905
2021-11-09 21:18:18 -06:00
Michael Downey
22a293ceb5 Merge branch 'str_trim_left' of github.com:rtfeldman/roc into str_trim_left 2021-11-09 20:38:20 -05:00
Michael Downey
0ee750d4c9 adding feature gen-llvm to tests 2021-11-09 20:37:38 -05:00
Folkert
b8ba387863 update comment 2021-11-10 02:31:59 +01:00