wac-parser 0.10.0

A library for parsing and encoding WebAssembly Composition (WAC) source files.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package test:comp;

import foo: interface {
    resource r {
        constructor();
        foo: func();
        bar: static func();
    }

    type r2 = r;

    bar: func(r: borrow<r>, r2: borrow<r2>, r3: r, r4: r2) -> tuple<r, r2>;
    baz: func();
};

let x = new foo:bar { foo };

export x.foo;