Closed v0-e closed 6 months ago
PR #17 introduced the generate() method into the Backend trait,
generate()
Backend
fn generate(&self, tld: ToplevelDefinition) -> Result<TokenStream, GeneratorError>;
However, based on my understanding, TokenStream is specialized for Rust tokens, which contradicts the intention of allowing custom Backends for other language bindings.
TokenStream
That is indeed something that should change, thank you for pointing that out. Feel free to open a PR.
PR #17 introduced the
generate()
method into theBackend
trait,However, based on my understanding,
TokenStream
is specialized for Rust tokens, which contradicts the intention of allowing customBackend
s for other language bindings.