<div dir="ltr">Hi folks,<br><br> How can I obtain the abstract form of the whole module source code?<br>Using something like this:<br><br><pre><font size="4">eval(SourceCode,Environ) -><br> {ok,Scanned,_} = erl_scan:string(SourceCode),<br>
{ok,Parsed} = erl_parse:parse_exprs(Scanned),<br> erl_eval:exprs(Parsed,Environ).</font><br></pre><br clear="all"> works only for single forms not for a whole module. Ideally what I need is kind of compiler switch (similar to -S) resulting in emitting AST and AST after applied any parse_transforms.<br>
Thank you in advance.<br><br>-- <br>Kind Regards, <br>Daniel Kwiecinski<br><br></div>