[erlang-questions] erl_syntax issues

Richard Carlsson carlsson.richard@REDACTED
Wed Mar 13 22:58:43 CET 2013


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




More information about the erlang-questions mailing list