pasa / asdl-rs

Apache License 2.0
10 stars 1 forks source link

Move asdl-tera to a separate crate #4

Closed matklad closed 5 years ago

matklad commented 5 years ago

it's not clear if tera is the best way to approach codegen. In rust-analyzer, I am contemplating using quote! instead. In any way, I think asdl library should not force clients into one particular way of doing code gen.

So I think tera-related bits should be split to a separate asdl-tera crate (which might be used by asdl itself for bootstrapping). It's OK to make asdl's AST Serialize, via optional serde feature.

pasa commented 5 years ago

Done it in last commit.