by killercup · 11y ago · 0 comments
I'm not sure what you mean by 'in rust itself'. Do you mean as part of the rust compiler? It works fine as library. If I understand this [0] correctly, you add lalrpop to your build process and it then pre-compiles your `.lalrpop` files to rust code every time you build your project. So, it is part of the compilation even though it's not part of `rustc` itself.
[0]: https://github.com/nikomatsakis/lalrpop/blob/master/doc/tuto...
D seems to make this sort of thing possible using a number of methods including mixins [1].