@grain/libbinaryen
Version:
Libbinaryen packaged for OCaml.
44 lines (39 loc) • 829 B
Plain Text
=== input wast ===
(module $hel
(memory $lo 0 0)
(table $wor 0 0 funcref)
(global $ld i32 (i32.const 0))
(func $of (param $wasm i32)
(local $!#$%&'*+-./:<=>?@\^_`|~ f64)
)
)
=== parsed wast ===
(module $hel
(type $0 (func (param i32)))
(global $ld i32 (i32.const 0))
(memory $lo 0 0)
(table $wor 0 0 funcref)
(func $of (param $wasm i32)
(local $!#$%&'*+-./:<=>?@\^_`|~ f64)
)
)
=== roundtripped ===
(module $hel
(type $0 (func (param i32)))
(global $ld i32 (i32.const 0))
(memory $lo 0 0)
(table $wor 0 0 funcref)
(func $of (param $js i32)
(local $!#$%&'*+-./:<=>?@\5c^_`|~ f64)
)
)
=== roundtripped again ===
(module $hel
(type $0 (func (param i32)))
(global $ld i32 (i32.const 0))
(memory $lo 0 0)
(table $wor 0 0 funcref)
(func $of (param $js i32)
(local $!#$%&'*+-./:<=>?@\5c^_`|~ f64)
)
)