file:consult with parse transformations and macros?

Karlo Kuna kuna.prime@REDACTED
Sun Jul 26 19:24:16 CEST 2020


Hi Led,
epp_dodger also works similar to epp only on forms as described here:
http://erlang.org/doc/apps/erts/absform.html which means these need to be
either attributes or function declarations. file:consult doesn't have that
limitation, it in fact reads and parses erlang expressions which is what i
want/need

but thanks for your input

On Sun, Jul 26, 2020 at 6:21 PM Led <ledest@REDACTED> wrote:

>
> hi,
>>
>> i am trying to make function similar to file:consult but i want to be
>> able to have macro applications in this file:
>>
>>    {a1, a2}.
>>    {?something, ....}.
>>    ...
>>
>> epp module works only on full module files and as far i can tell does not
>> implement io protocol.
>>
>> i'm thankful for any suggestions?
>>
>>
> epp_dodger - bypasses the Erlang preprocessor.
>
> This  module  tokenises and parses most Erlang source code without
> expanding preprocessor directives and macro applications, as long as these
> are syntactically "well-behaved".
>
> --
> Led.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20200726/d541b2fd/attachment.htm>


More information about the erlang-questions mailing list