wit-parser 0.9.2

Tooling for parsing `*.wit` files and working with their contents.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package foo:functions

interface functions {
  f1: func()
  f2: func(a: u32)
  f3: func(a: u32,)
  f4: func() -> u32
  f6: func() -> tuple<u32, u32>
  f7: func(a: float32, b: float32) -> tuple<u32, u32>
  f8: func(a: option<u32>) -> result<u32, float32>
  f9: func() -> (u: u32, f: float32)
  f10: func() -> (u: u32)
  f11: func() -> ()
}