[erlang-questions] clarify: export statement in erl_syntax notation

Roberto Saccon rsaccon@REDACTED
Sat Jan 12 22:08:49 CET 2008


Vlad, that worked, thanks a lot

On Jan 12, 2008 6:34 PM, Vlad Dumitrescu <vladdu55@REDACTED> wrote:
> Hi,
>
> On Jan 12, 2008 8:37 PM, Roberto Saccon <rsaccon@REDACTED> wrote:
> >   -export([foo/0, foo/1]).
> > in abstract erl_syntax notation:
>
> Try
>
> erl_syntax:attribute(
>   erl_syntax:atom(export),
>   [erl_syntax:list([erl_syntax:arity_qualifier(erl_syntax:atom(foo),
>
> erl_syntax:integer(0)),
>                          erl_syntax:arity_qualifier(erl_syntax:atom(foo),
>
> erl_syntax:integer(1))])]).
>
>
> best reards,
> Vlad
>



-- 
Roberto Saccon
http://rsaccon.com



More information about the erlang-questions mailing list