Hi all,<div><br></div><div>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.</div><div>
<br></div><div>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.</div>
<div><br></div><div>How can I do this?</div><div><br></div><div>Thanks,</div><div>Jacob</div>