Commit Graph

21870 Commits

Author SHA1 Message Date
Brian Carroll
dd93e2e46f
wasm_interp: Print out return value(s), if any 2022-11-25 00:14:44 +00:00
Brian Carroll
9d77c474d9
wasm_interp: Add --debug flag 2022-11-25 00:14:44 +00:00
Brian Carroll
3d756a8fff
wasm_interp: Fixes to get CLI mode working 2022-11-25 00:14:44 +00:00
Brian Carroll
9d437fe3fd
wasm_interp: report todo! panics with file offset of the missing instruction 2022-11-25 00:14:44 +00:00
Brian Carroll
f103801457
wasm_module: accept simpler modules with missing sections 2022-11-25 00:14:44 +00:00
Brian Carroll
60a671362f
wasm_interp: Create a CLI to run .wasm files 2022-11-25 00:14:44 +00:00
Brian Carroll
6d84c85078
wasm_interp: Fix PR feedback 2022-11-25 00:14:43 +00:00
Richard Feldman
7874db0b5f
Fix a cfg 2022-11-24 19:14:34 -05:00
Richard Feldman
99f55d6ed6
Merge remote-tracking branch 'origin/main' into https-packages 2022-11-24 19:14:31 -05:00
Richard Feldman
d081b08d44
Revise some tutorial sections 2022-11-24 19:01:10 -05:00
Richard Feldman
c9150d858d
Style <code> blocks inside heading tags 2022-11-24 19:00:44 -05:00
Joshua Warner
56470c838d
Implement tuple accessors after records/tuples 2022-11-24 15:32:39 -08:00
Richard Feldman
2050f0ac2f
Merge pull request #4582 from roc-lang/simplify-cli-platform
Drop Program and third type param from Task from CLI platform
2022-11-24 17:57:07 -05:00
Richard Feldman
917eb898fc
Merge pull request #4589 from roc-lang/fix-test
Fix test
2022-11-24 17:56:45 -05:00
Joshua Warner
a1432d1a14
Fix TypeAnnotation::Tuple comment 2022-11-24 14:29:50 -08:00
Richard Feldman
4276345c7a
Delete TUTORIAL.md in favor of HTML version 2022-11-24 16:06:37 -05:00
Richard Feldman
243a33fbd9
HTMLify new tag union type tutorial section 2022-11-24 16:06:37 -05:00
Richard Feldman
20e279aefd
Add pattern matching on lists to HTML tutorial 2022-11-24 16:06:36 -05:00
Richard Feldman
60091c736c
Add docs for crash to HTML tutorial 2022-11-24 16:06:36 -05:00
Ayaz Hafiz
7fdaf0f1bf
Make sure to ignore type errors in test 2022-11-24 14:58:35 -06:00
Ayaz Hafiz
41659ec394
Remove unneeded roc_panic extern in tests
We stub roc_panic to SJ/LJ-style exceptions in llvm tests, so this is
not needed.
2022-11-24 14:56:44 -06:00
Ayaz Hafiz
0cb41b7a07
Indent tests more 2022-11-24 14:55:11 -06:00
Ayaz Hafiz
cbdb535580
Remove unused macro 2022-11-24 14:54:51 -06:00
Ayaz Hafiz
ebc2b29199
Remove use of expect_runtime_error_panic 2022-11-24 14:54:11 -06:00
Ayaz Hafiz
e6cd64f161
Swap out expect_runtime_error_panic for assert_evals_to 2022-11-24 14:53:21 -06:00
Ayaz Hafiz
eef51c9d87
Correct crash refs 2022-11-24 14:50:39 -06:00
Ayaz Hafiz
26d8f0ce08
Fix kw list 2022-11-24 14:48:39 -06:00
Richard Feldman
47374609e3
Re-add dbg to KEYWORDS 2022-11-24 14:46:54 -06:00
Richard Feldman
7f8eae5a24
Give some tests more accurate names 2022-11-24 14:46:54 -06:00
Richard Feldman
de8da82ace
Fix a test that had a duplicate body with another 2022-11-24 14:46:54 -06:00
Ayaz Hafiz
cb7de132e5
Update mono 2022-11-24 14:46:54 -06:00
Ayaz Hafiz
f9de522004
Add crash fmt test 2022-11-24 14:46:54 -06:00
Ayaz Hafiz
ea386bf0af
Dont remove stmt_error 2022-11-24 14:46:54 -06:00
Ayaz Hafiz
ce5636d94f
Get rid of stmt_runtime_error in gen-wasm 2022-11-24 14:46:54 -06:00
Ayaz Hafiz
7e975b9111
Update mono tests 2022-11-24 14:46:53 -06:00
Ayaz Hafiz
803d7e30e3
Eliminate Stmt::RuntimeError in favor of crash 2022-11-24 14:46:53 -06:00
Ayaz Hafiz
a2f2a18a76
Replace runtime error with crash 2022-11-24 14:46:53 -06:00
Ayaz Hafiz
1922a144f2
bye ffi 2022-11-24 14:46:53 -06:00
Ayaz Hafiz
7668d7d592
Not everything is equal, but this is I suppose 2022-11-24 14:46:53 -06:00
Ayaz Hafiz
f3a03ef6eb
Pass roc_panic msg by ref on 32 bit plats 2022-11-24 14:46:53 -06:00
Ayaz Hafiz
291615072b
Fix usages of panic 2022-11-24 14:46:53 -06:00
Ayaz Hafiz
12d013c062
Remove unneeded param 2022-11-24 14:46:53 -06:00
Ayaz Hafiz
36ff2e577b
Ignore test on wasm for now 2022-11-24 14:46:52 -06:00
Ayaz Hafiz
aba047e84c
Add support for user crashes in the cli plat 2022-11-24 14:46:52 -06:00
Ayaz Hafiz
4202352b19
Update panic tags of builtins 2022-11-24 14:46:52 -06:00
Ayaz Hafiz
32400e37e1
Implement crash in gen-wasm 2022-11-24 14:46:52 -06:00
Ayaz Hafiz
a8122662c2
Return panic tag from roc_panic to test platform 2022-11-24 14:46:52 -06:00
Ayaz Hafiz
9201cf0b32
Add tests for user crash 2022-11-24 14:46:52 -06:00
Ayaz Hafiz
c8accc90e8
Implement user crash in llvm backend 2022-11-24 14:46:52 -06:00
Ayaz Hafiz
d9a8cba821
Correct symbol capturing of crash 2022-11-24 14:46:51 -06:00