rust-analyzer / rowan

Apache License 2.0
677 stars 57 forks source link

Make it easier to define high-level ASTs? #136

Open oxalica opened 1 year ago

oxalica commented 1 year ago

Currently we provides traits and auxiliary functions in rowan::ast, but it's still difficult to use.

Could we make it easier to define ASTs and child extractors? Maybe using some DSL with proc-macros or build.rs for generation?