webassemblyjs icon indicating copy to clipboard operation
webassemblyjs copied to clipboard

support optional parens in WATF format

Open ColinEberhardt opened this issue 7 years ago • 0 comments

The following are equivalent, and supported by wat2wasm:

(func $test 
    (i32.const 12)
    (i32.const 0x70000000)
    (i32.store)
  )
(func $test 
    i32.const 12
    i32.const 0x70000000
    i32.store
  )

Currently the WATF parser expects all instructions to be enclosed in parens.

ColinEberhardt avatar Jan 29 '18 21:01 ColinEberhardt