Interpreter Library organization
Posted: Tue Mar 13, 2012 1:30 am
Hello guys. I've a problem with my interpreter. I'm trying to organize functions in libraries with some logic ... but I haven't found this logic yet. The intention is to provide group of functions in libraries....for example....everything concern string manipulation in a "string.dll", what concern sequences in a "sequence.dll". I need this to load what I need on demand and not at startup time. But this is not always the right way. Part of string functions (and others) are needed by the core of the interpreter. For example, I cannot make an "object.dll" and a "type.dll" because part of "type.dll" is used by "object.dll" and part of "object.dll" is used by "type.dll"...this mean a DLL reference loop that cause interpreter to crash.
Then with what logic I can organize my functions in libraries?
I've take a look to Scheme....SRFI's....I don't like this organizations. And I don't like the idea to make a single dll for everything.
If someone have understood what i've written...pleeaaaase help me.
Thank you all.
Then with what logic I can organize my functions in libraries?
I've take a look to Scheme....SRFI's....I don't like this organizations. And I don't like the idea to make a single dll for everything.
If someone have understood what i've written...pleeaaaase help me.
Thank you all.