For example, I wrote an attribute proc macro #[foo]
,
and it uses by the Rust code
#[foo]
stringify!(bar)
The handler of #[foo]
see the token stream as stringify!(bar)
.
Is it possible to let the handler of #[foo]
see the token stream of "bar"
(The evaluation result of stringify!(bar)
)
The question is that if this is possible for a proc macro handler, to evaluate another macro,
then the handler acts based on the final evaluation result.