<div dir="ltr"><div><div><div><br>u r d best !!<br><br></div>thx for always helping with my erl_syntax problems - and for writing it of course :P<br><br></div>I also had a similar bug with the use of erl_syntax:clause/3... again was not passing in a [syntaxTree()].<br>
<br></div>The working version:<br><div><br><a href="http://pastebin.com/LdPKTSfG">http://pastebin.com/LdPKTSfG</a><br><div><div><div><div class="gmail_extra"><br></div><div class="gmail_extra">cheers,<br></div><div class="gmail_extra">
Justin<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 13 March 2013 22:58, Richard Carlsson <span dir="ltr"><<a href="mailto:carlsson.richard@gmail.com" target="_blank">carlsson.richard@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 2013-03-13 22:52, Justin Calleja wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi all,<br>
<br>
Anyone knows why erl_syntax won't revert a syntaxTree() I created using<br>
erl_syntax itself?<br>
<br>
See: <a href="http://pastebin.com/DzFbVUXw" target="_blank">http://pastebin.com/DzFbVUXw</a><br>
</blockquote>
<br></div></div>
I think it's because you pass the result of your ClauseBuilder directly to FunctionBuilder, but the latter expects a list of clauses, and the former just produces a single clause. Try FunctionBuilder([<u></u>ClauseBuilder(...)]).<span class="HOEnZb"><font color="#888888"><br>

<br>
    /Richard<br>
<br>
</font></span></blockquote></div><br></div></div></div></div></div></div>