Currently wac-parser lacks a programmatic API for defining compositions.
It is relying solely on the parsing of a WAC file, resolving the AST into a composition, and then encoding the composition.
There should be a programmatic API similar to the CompositionGraph from wasm-compose that allows one to define a composition directly without having to parse WAC source.
The step of resolving the WAC AST into a composition could then also leverage this API.
Currently
wac-parserlacks a programmatic API for defining compositions.It is relying solely on the parsing of a WAC file, resolving the AST into a composition, and then encoding the composition.
There should be a programmatic API similar to the
CompositionGraphfromwasm-composethat allows one to define a composition directly without having to parse WAC source.The step of resolving the WAC AST into a composition could then also leverage this API.