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

Vlad Dumitrescu <>
Sat Jan 12 21:34:00 CET 2008


Hi,

On Jan 12, 2008 8:37 PM, Roberto Saccon <> 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



More information about the erlang-questions mailing list