<div dir="ltr"><div>Hi All,</div><div><br></div><div>I am<span style="color:rgb(0,0,0);font-size:12.8px"> attempting to implement a supercompilation method in optimizing the preprocessor.</span></div><div><span style="color:rgb(0,0,0);font-size:12.8px"><br></span></div><div><span style="color:rgb(0,0,0);font-size:12.8px">So, I need to parse the preprocessor directives (</span><font color="#000000"><span style="font-size:12.8px">best case scenario: build an AST of the macroses)</span></font><span style="color:rgb(0,0,0);font-size:12.8px"> before compilation.</span></div><div>Can anyone suggest a better way to do it? If it is quite hard to parse the macroses, it is ok to just get get all of them and then without clang usage.</div><div><br></div><div>(It would be nice but not necessary if it is possible to implement as an extension. But I still cannot find a way to do it.)</div><div><br></div><div>Thakns!</div><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><br><div><span style="color:rgb(51,51,51);font-family:Arial,Tahoma,Verdana;line-height:20px">Timur</span></div></div></div></div></div></div>
</div>