[erlang-questions] dynamic module compilation
Sun Jun 8 04:19:50 CEST 2008
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?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions