file:consult with parse transformations and macros?

Karlo Kuna
Sun Jul 26 19:24:16 CEST 2020

Hi Led,
epp_dodger also works similar to epp only on forms as described here: 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

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: <>

More information about the erlang-questions mailing list