mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2025-12-27 10:33:59 -05:00
👋 Hey, This PR adds support for the Webassembly Text Language (#1871). Currently it only supports the [wasmtime](https://github.com/bytecodealliance/wasmtime) compiler, but it should be possible to add others (i.e. v8 / wasmer / etc...). It looks like the monaco does not support the WAT language, so I've added a simple mode for it, that is mostly copied from the clojure mode with some changes. From what I've tested it seems to work reasonably well.  --------- Co-authored-by: Patrick Quist <partouf@gmail.com>
8 lines
115 B
Plaintext
8 lines
115 B
Plaintext
(module
|
|
(func $square (param i32) (result i32)
|
|
local.get 0
|
|
local.get 0
|
|
i32.mul
|
|
)
|
|
)
|