Marcelino Luna Espinosa <[EMAIL PROTECTED]> wrote:
> "Egor Voznessenski" <[EMAIL PROTECTED]>:
>
> > I wrote one a while ago (ASCII format of MSX BASIC -> DOS COM file),
> > with all MSXBASIC features supported. Unfortunately, i lost both
> > source code and compiled binaries for the libraries.
> Oh, I'm sorry. Emmh... Why did you do libraries? Were them the
> implementation of MSX BASIC functions? Or do you mean libraries for
> using in the BASIC compiled programs? I'm going to make the compiler
> of my (not standar) BASIC, and later the libraries (in this language)
> that implements the MSX BASIC functions. This will be easier to
> develop when the main body of the compiler is completed, but I'll
> have to do things like including header files (like in c), and I don't
> know if it will be too difficult.
>
> About the compiler, how did you make the evaluation of
> expressions? I'm not sure what's the best way.

LEX & YACC  ? ;-)

If I remember my "compiler" introduction course, you must parse the
code, store all the variables names and addresses into a link table (for
also allowing both intern/static and extern variables), convert the
operands, make calls for functions, and choose a method for argument
transfert (I like both C method using pointer to pointers list (NULL
terminated), and also ASM370 BALR system with the register 13 pointing
to the previous register environment, which can be imitated for all
other variables (argument addresses) transfers...)
and at the end make the "link edit" between all the object files (".OBJ"
or ".o").

I hope I haven't made mistakes, it's very late now... and I won't have
time to reread myself in the following days (or else I'd have to answer
in only a few weeks)...
I also hope it will help someone or give some ideas...

MetalGear

PS: for your information, I know a little bit about C on MS-DOS systems,
about C for UNIX, and about IBM 370 assembly language. (plus Pascal, and
so on... :-)
I ended my studies 3,5 years ago, so I may have forgotten many important
things... I hope none of my teachers are reading this ;-)

---------------------------------------------------------------
Email:  [EMAIL PROTECTED]
        [EMAIL PROTECTED]
WEB:    http://www.ping.be/metalgear
                Les Petits D�jeuners du Cin�ma
        http://www.ping.be/metalgear/ptitdej
                Forum MSX mag.
        http://www.mygale.org/05/forummsx
        http://www.ping.be/metalgear/mirror/forummsx
---------------------------------------------------------------

****
MSX Mailinglist. To unsubscribe, send an email to [EMAIL PROTECTED] and put
in the body (not subject) "unsubscribe msx [EMAIL PROTECTED]" (without the
quotes :-) Problems? contact [EMAIL PROTECTED] (www.stack.nl/~wiebe/mailinglist/)
****

Reply via email to