On Fri, 26 Jan 2001 11:54:29 +0000, Maarten ter Huurne wrote:
>We could solve this by including the sequence of INI statements in the
>standard. But I don't like that much, it will make the standard larger, take
>more effort from people writing INI files and will demand more error checking
>from the parser.
>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.
Why not solve this with "End-Start" type tags? Something like <HTML>:
<MAPPER>
Banksize=8
Initial[4000]=0
Initial[6000]=1
Initial[8000]=2
Initial[A000]=3
Register[6000]=6000
Register[8000]=8000
Register[A000]=A000
</MAPPER>
Should do it. (^=
>By the way, I think the "Register[5000/07FF]=4000" syntax is a bit confusing
>since there is also the "Name[en]=Penguin Adventure" syntax and there is
>hardly any similarity between "5000/07FF" and "en". Maybe something like
>"Register=5000/07FF->4000" is better.
Confusing? Think as Register or Name being a matrix. 5000/07FF is a 2D
matrix index. "en" is an alpha matrix index. (^= The similarity are that
both are indexes.
----- AbraçOS/2, Daniel Caetano ([EMAIL PROTECTED])
/| | | |\
\| ___ |/ OS/2: http://www.quasarbbs.com/daniel/
\/ ----- \/ MSX: http://www.fudeba.cjb.net/
| | Drawings: http://www.djgallery.tsx.org/
-- -- ...Programming to solve the mistery of life!
--
For info, see http://www.stack.nl/~wynke/MSX/listinfo.html