/WebAssemblyText.jl

Translate .jl to .wat

Primary LanguageJuliaMIT LicenseMIT

WebAssemblyText.jl

Dev Build Status

Convert Julia to WebAssembly text.

@code_wat expr

jl2wat(path)

jlstring2wat(str)

Example

julia> using WebAssemblyText
julia> hello(x) = 3.1*x
julia> @code_wat hello(1.2)
(func $hello (export "hello") (param $x f32) (result f32)
(return (f32.mul (f32.const 3.1) (local.get $x))))

Documentation