[erlang-questions] erl_syntax issues

Justin Calleja <>
Thu Mar 14 00:05:36 CET 2013


u r d best !!

thx for always helping with my erl_syntax problems - and for writing it of
course :P

I also had a similar bug with the use of erl_syntax:clause/3... again was
not passing in a [syntaxTree()].

The working version:

http://pastebin.com/LdPKTSfG

cheers,
Justin


On 13 March 2013 22:58, Richard Carlsson <> wrote:

> On 2013-03-13 22:52, Justin Calleja wrote:
>
>> Hi all,
>>
>> Anyone knows why erl_syntax won't revert a syntaxTree() I created using
>> erl_syntax itself?
>>
>> See: http://pastebin.com/DzFbVUXw
>>
>
> 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([**
> ClauseBuilder(...)]).
>
>     /Richard
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20130314/12bf3564/attachment.html>


More information about the erlang-questions mailing list