[erlang-questions] dynamic module compilation

Jacob Perkins japerk@REDACTED
Sun Jun 8 04:19:50 CEST 2008


Hi all,
I need some help understanding how to dynamically compile/generate an erlang
module. I've seen other projects do this kind of thing, such as erlydtl, but
my needs are much simpler.

I have a few files that are basically lists of words. What I want to do is
generate a module whose functions will return each list of words. So if I
have two files named "adjectives" and "nouns", then the generated module
(let's call it 'grammar') should have two functions, adjectives() and
nouns(), that return their respective list of words.

How can I do this?

Thanks,
Jacob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20080607/c2b044df/attachment.htm>


More information about the erlang-questions mailing list