Re: QBasic 1.1 language



On Thu, 23 Aug 2007 07:03:09 -0000, Kristian
<news13102005@xxxxxxxxxxx> wrote:

Assalam alaikum brothers!

QBasic 1.1 language is great for programming as it comes with a free
MS-DOS QBasic interpreter freely downloadable from Microsoft's web
site or found in your Windows 9x CD-ROM's olddos directory.

However, QBASIC.EXE lacks compiler features (and no, I don't want MS
QuickBASIC 4.5) and I'd like to know is it possible to design a
compiler in QBasic 1.1 in the QBASIC.EXE environment.
Probably not. At least, I don't think so. QBasic is more or less a
lame subset of PDS 7.0 (aka QuickBasic 7.0), IMO. It doesn't really
allow for a large enough program to do a good compiler. BCET, which
was developed with PDS 7.1, just barely fits in the IDE, and is only
the first pass of 4. The 2nd & 3rd passes are also pretty tight fits
for the IDE.

This compiler will then translate a QBasic 1.1 source code (such as
NIBBLES.BAS, etc) to assembly language (which is then assembled by
A86) to produce a .COM.

I know there is a tool, YACC but can be used for Basic? Is there a
YACC port for Basic, in particular, QBasic 1.1 ?
YACC is written in C, which means it wouldn't be of very much with
QBasic. Also, I have in the past tried converting the output of
programs such as YACC, from C to Basic. Those outputs generally have
select statements that are WAY too big for either QBasic or
QuickBasic.

If you are willing to settle for a win32 console program, try BCET.
2nd URL in the sig.

If you want 16-bit EXE files, get a copy of either PDS 7.10 or VBDOS
1.0, which is the same except that MS FOBARed the IDE, and added the
text windows.

If you want 16-bit COM files, good luck.
--
ArarghMail708 at [drop the 'http://www.' from ->] http://www.arargh.com
BCET Basic Compiler Page: http://www.arargh.com/basic/index.html

To reply by email, remove the extra stuff from the reply address.
.



Relevant Pages

  • Re: Visual C++ 6 support issue
    ... They are now giving the compiler away without an IDE. ... Does MS want more VC programmers out there? ... language - each and every VB progammer has to effectively learn a new ...
    (microsoft.public.vc.mfc)
  • Re: YACC / FORTH
    ... Compiler) cannot be used to create a FORTH compiler. ... That language is described in terms of a grammar that is annotated with the code to execute when portions of that grammar are recognized. ... YACC are a good tool when you have a complex, regular grammar defining your language. ...
    (comp.lang.forth)
  • Re: What compilier for Windows?
    ... > between a compiler and an IDE. ... > difference than to browbeat the poor guy? ... An IDE is basically a set of tools ... which form a complete programming environment for a given language. ...
    (comp.lang.cpp)
  • Re: What IDE are you using?
    ... with Visual Studio, is run by default, and whose input and output are integrated into the fabric of the IDE. ... And yes, I do know that one can, if one wants to, run the MS compiler completely independently, from command-line. ... how exactly do you suck out their concept of a project into a say a makefile such that you can build the whole application or system via a simple command or script. ... Not having to learn a whole new way of doing things, different keystrokes, different concepts, etc. and repeat that for every IDE for every language that I use. ...
    (comp.lang.php)
  • Re: Can embed asm code in c#
    ... >> Adding ILASM could double the complexity of the compiler, IDE, and ... >> language to help the handful of people that would actually use it ... Allowing ILASM and C# files to be linked into the ... It'd be nice if they would just provide an IDE that supports it, ...
    (microsoft.public.dotnet.languages.csharp)