[erlang-questions] Can epp_dodge:parse accept a ram_file?

Leo Liu sdl.web@REDACTED
Wed Feb 12 00:39:48 CET 2014


On 2014-02-12 00:05 +0800, Sina Samavati wrote:
> In your snippet, IoDevice is '{file_descriptor, ram_file, #<PORT>}', whereas the
> first argument of epp_dodger:parse/3 must be a Pid.
> Why don't create a temporary file?

I already I have the Text so going through the file system is only a
fallback when nothing better is found.

epp_dodger:parse/3 makes use of io:parse_erl_form and it seems from the
documentation it ought to work with ram_file.

Leo



More information about the erlang-questions mailing list