waPC Interface Definition Language
npm install @wapc/widlThis library will parse .widl files into an AST. Refer to the docs docs for more information.
``sh`
$ npm install @wapc/widl
`js
const widl = require("@wapc/widl");
const source =
namespace "mandelbrot"
interface {
update(width: u32, height: u32, limit: u32): [u16]
};
const doc = widl.parse(source, { noLocation: true });
console.log(JSON.stringify(doc));
`
`html``
type="text/javascript"
src="https://cdn.jsdelivr.net/npm/@wapc/widl/dist/standalone.min.js"
>