Commit Graph

21546 Commits

Author SHA1 Message Date
Brian Carroll
74e1bc412f
Merge pull request #4593 from roc-lang/wasm_interp_cli
Wasm interp CLI
2022-11-25 13:01:09 +00:00
Richard Feldman
6b805b721b
Merge pull request #4596 from roc-lang/dbg-color
Print `dbg` output in blue
2022-11-25 03:23:15 -05:00
Richard Feldman
f52ad5cbba
Merge pull request #4591 from roc-lang/tuple-accessor
Tuple accessors after tuples/records
2022-11-24 22:34:27 -05:00
Richard Feldman
5d4fa4eff1
clippy 2022-11-24 21:34:02 -05:00
Richard Feldman
54da1b1e3b
Print a newline at the end of dbg output 2022-11-24 20:39:04 -05:00
Richard Feldman
c63baa2ede
Print dbg output in blue in terminal 2022-11-24 20:38:52 -05:00
Brian Carroll
a0fe01dd5f
wasm_interp: Use an Option instead of separate bool and String 2022-11-25 01:28:31 +00:00
Brian Carroll
77ebaba4ff
wasm_interp: include immediates in --debug output 2022-11-25 01:13:32 +00:00
Richard Feldman
6517a766f6
Merge pull request #4584 from roc-lang/crash-dbg-docs
Add `crash` to tutorial, remove TUTORIAL.md in favor of HTML one
2022-11-24 19:41:54 -05:00
Richard Feldman
40bf022e02
Merge pull request #4586 from roc-lang/wasm-debug-tips
gen_wasm: Add debugging tips to readme
2022-11-24 19:41:31 -05:00
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
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
848c18f996
Merge pull request #4567 from joshuawarner32/tuple-type-annotation
Implement tuple type parsing
2022-11-24 14:42:11 -06:00
Richard Feldman
1a1bc3a7cf
Merge branch 'fix-test' into simplify-cli-platform 2022-11-24 15:39:31 -05:00
Richard Feldman
c8723ccedd
Give some tests more accurate names 2022-11-24 15:36:49 -05:00
Richard Feldman
2cdb4fa10c
Fix a test that had a duplicate body with another 2022-11-24 15:35:42 -05:00
Brian Carroll
e9ee62b2c2
Merge pull request #4581 from roc-lang/wasm_interp_part2
Wasm interp function calls
2022-11-24 18:45:12 +00:00
Richard Feldman
ac2d50aea9
Merge pull request #4542 from roc-lang/precompiled-legacy
Precompiled legacy linking
2022-11-24 13:13:48 -05:00
Richard Feldman
c63425e188
Fix test 2022-11-24 12:06:58 -05:00
Brian Carroll
4c6f868e24
wasm_interp: refactor a test for readability 2022-11-24 16:55:22 +00:00
Richard Feldman
5dcd07e4ec
Merge pull request #4571 from roc-lang/editor_goals_doc
added editor goals and reqs docs
2022-11-24 11:44:38 -05:00
Brian Carroll
f10262a41d
clippy 2022-11-24 16:43:43 +00:00
Brian Carroll
6523b38847
wasm_interp: implement calls with arguments 2022-11-24 16:43:31 +00:00
Brian Carroll
3aeab0dbd7
wasm_interp: initial version of ExecutionState::for_module 2022-11-24 16:43:31 +00:00
Brian Carroll
235c238e36
Move Value from wasm_interp to wasm_module & create GlobalSection::initial_values 2022-11-24 16:43:31 +00:00
Brian Carroll
0a2f2739b2
wasm_interp: implement function call (no arguments yet!) 2022-11-24 16:43:31 +00:00
Brian Carroll
972d9dbb19
wasm_interp: implement call and return instructions 2022-11-24 16:43:31 +00:00
Brian Carroll
57aa3aafd8
wasm_interp: test helper for default ExecutionState 2022-11-24 16:43:31 +00:00
Brian Carroll
335497c99f
wasm_interp: implement globals 2022-11-24 16:43:31 +00:00
Brian Carroll
ff63831fd1
wasm_interp: implement local.get, local.set, and local.tee 2022-11-24 16:43:31 +00:00
Richard Feldman
987fcf616e
Merge pull request #4578 from roc-lang/dbg
add `dbg`
2022-11-24 11:42:03 -05:00
Brian Carroll
b17996f6f7
gen_wasm: Add debugging tips to readme 2022-11-24 16:39:16 +00:00
Joshua Warner
c6b5273144
Implement tuple type parsing
Also change some tests with newly relaxed indentation requirements, and remove an irrelevant test (since unindented close parens are now perfectly valid, the test is no longer useful).
2022-11-24 07:36:59 -08:00
Joshua Warner
a6a90178ce
Refactor record_type to use combinators 2022-11-24 07:36:44 -08:00
Richard Feldman
ac8a62b382
Merge remote-tracking branch 'origin/main' into precompiled-legacy 2022-11-24 10:05:39 -05:00
Anton-4
22b7700c2b
lib dir is no longer needed 2022-11-24 10:05:29 -05:00
Ayaz Hafiz
2ed2d88881
Do not run occurs checks when printing type variables
This is a hack. Let's find and correct these problems earlier in the
compiler.
2022-11-24 10:05:28 -05:00