dtolnay / reflect

Compile-time reflection API for developing robust procedural macros (proof of concept)

Home Page:https://docs.rs/reflect

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Design compiler IR

dtolnay opened this issue · comments

The current IR (based on WipFunction for functions, and ValueRef + ValueNode for values) just barely works for simple macros but is probably not going to be pleasant to work with internally as the compiler gets more interesting.

Basically the entire current implementation in the src/ directory is just supposed to be a proof of concept that we can stack enough RefCells on top of each other to get something reasonably convenient from the user's perspective. 😈 I am open to completely replacing it as needed.