[erlang-questions] compile module from string, containing macro definitions
Ulf Wiger
ulf@REDACTED
Thu Mar 8 08:22:17 CET 2007
Den 2007-03-08 00:48:39 skrev Chris Newcombe <chris.newcombe@REDACTED>:
> I'm using this code from Ulf Wiger to compile a module from a string:
>
> http://www.erlang.org/ml-archive/erlang-questions/200607/msg00080.html
>
> It is supposed to support epp-style macros.
> However, when I test it with code containing a macro definition I get an
> error.
While epp_dodger is able to parse macro definitions (as long as they
are syntactically regular), it doesn't expand them. It ought to be
possible to insert a macro expansion pass. This is what I do in erlhive.
BR,
Ulf W
--
Ulf Wiger
More information about the erlang-questions
mailing list