compiling a module from a string

Ulf Wiger (AL/EAB) ulf.wiger@REDACTED
Mon Jul 10 13:27:59 CEST 2006


 
MaCro = Mats Cronqvist wrote:
> > 
> > Str = "-module(m).\n-export([foo/0]).\nfoo() -> foo.\n".
> > compile:string(Str, [binary]).
> 
>    this should work iff there are no #@#$&* macros. if there 
> is, it's pretty easy to write a subset of epp and call it 
> between scanning and parsing.

Well, my ram_file_io_server works like a charm and lets me 
use all the wonderful macros too.  (:

/U



More information about the erlang-questions mailing list