开发者

Viewing MSIL as expression tree

开发者 https://www.devze.com 2023-03-30 18:26 出处:网络
I\'m currently building a compiler for my language into MSIL, and use Reflector to inspect the IL. Is there a way to visualise the IL as an Expres开发者_Go百科sion Tree that could be used to generate

I'm currently building a compiler for my language into MSIL, and use Reflector to inspect the IL.

Is there a way to visualise the IL as an Expres开发者_Go百科sion Tree that could be used to generate the IL instead?


You could use FxCop for this, with a custom rule that writes to a text file or something.


Note: FxCop works on compiled managed code (DLLS/exes), not sure about starting from IL. I suggested this answer as you say you're using Reflector to get IL, implying you're starting from compiled managed code.

0

精彩评论

暂无评论...
验证码 换一张
取 消