compiling a module from a string
Bengt Kleberg
bengt.kleberg@REDACTED
Thu Jul 6 16:55:09 CEST 2006
On 2006-07-06 16:19, Ulf Wiger (AL/EAB) wrote:
>> Of course, this doesn't work, since compile.erl assumes that
>> the source has to come from a file. So does epp.erl, BTW, and
>> epp_dodger.
when faced with a similar problem for a pretty printer (epp_dodger
wanting a file) i found that epp_dodger:parse/1 could handle an io
object, instead of a file. so i wrote a string_io module that has
open()/close() and received the io_requests. would this have worked for
you? ie, can compile take an io object?
bengt
--
EPO guidelines 1978: "If the contribution to the known art resides
solely in a computer program then the subject matter is not
patentable in whatever manner it may be presented in the claims."
More information about the erlang-questions
mailing list