Hello guys, I'm new in MSX secta, but I have a crazy idea and I
want to share it with the people: a brand new BASIC compiler.
Think about it: a new language that handles long variable names,
modern sentences (like 'while'), no line numbers, etc. But the most important,
that uses all the available memory. The code generated would be much faster
than interpreted BASIC (though never as fast as assembler).
The addresses would be of 22 bits: 8 for the (logic) segment
and 14 for the offset inside the segment.
The code generated would use one page for executing and another for
accesing data (respectively, pages 1 and 2). In the page 0 there
could be some general routines and the stack (it would be greater than
usual because of the space needed for evaluating expressions and local
variables).
I am thinking also making a system of including header files and
linking in several files, but it's for later versions.
The typical functions of BASIC will be there, but a little
different. This is because I want to make the language syntax-independant.
Another point is the need or not to declare variables. It
depends on the preferences of the users. I think BASIC users will
prefer optional declarations.
It could also include local variables and functions.
Well, that's all for the moment. Perhaps you had this idea
before or it interests you. I would thank some words if so.
Yombo - [EMAIL PROTECTED]
http://mesxes.home.ml.org
****
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/)
****