Open garyttierney opened 4 years ago
Hi,
I don't stand against it but I am not pretty sure that work done for rust-analizer
can be generalized well. I guess every project has quite unique code generation requirements. For example rust-analizer
codegen has trait inference support.
I have a plan to add some examples to asdl
crate and may be we could add rowan
example. It will be a good starting point for people. In this case users can just copy-paste some code from example and modify as they wish.
Hi,
Now that asdl-rs is ready for use in rust-analyzer with rowan (per https://github.com/rust-analyzer/rust-analyzer/pull/1469), would you be open to a separate crate that can do the work being done in rust-analyzer#1469 for other crates that use rowan?
I use rowan myself and currently generate AST types with a variety of custom macros. It'd be nice to settle on something fairly standard, and asdl looks like a pretty good choice. I'd be happy to pick up the work on this once the rust-analyzer PR is settled.