I forgot to comment this one...

On Fri, 26 Jan 2001, Maarten ter Huurne wrote:

> A different option is to make the parser build a data structure and the let 
> the emulator use that data structure to initialise itself. First, the entire 
> INI file will be parsed and stored in the data structure, then the emulator 
> would call getField("GameID") which would return the value of GameID etc. 
> There should also be a way to iterate through multiple instances of the same 
> statement, like Initial and Register.

        The callbacks in my implementation are called only after all the
parsing is done, and also they are called only if the file has no errors.
Data structures like the one you proposed can be added at no cost in my
implementation, you just need to implement then inside the callbacks. Your
approach is just one layer of abstraction above mine.

----------------------------------------------------------------
Ricardo Bittencourt               http://www.lsi.usp.br/~ricardo
[EMAIL PROTECTED]  "Ricardo is subtle, but malicious he is not"
------ Uniao contra o forward - crie suas proprias piadas ------


--
For info, see http://www.stack.nl/~wynke/MSX/listinfo.html

Reply via email to