Mail Archives: djgpp/2000/01/27/09:40:16
From: | Damon Hogan <damonh AT pgmincorporated DOT com>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | BASCC Basic to C++ converter .22 Pre release available
|
Date: | Wed, 26 Jan 2000 16:01:23 -0700
|
Organization: | XMission http://www.xmission.com/
|
Lines: | 61
|
Message-ID: | <388F7CC3.62D811CA@pgmincorporated.com>
|
NNTP-Posting-Host: | mail.pgmincorporated.com
|
Mime-Version: | 1.0
|
X-Trace: | news.xmission.com 948927459 20373 166.70.119.101 (26 Jan 2000 22:57:39 GMT)
|
X-Complaints-To: | abuse AT xmission DOT com
|
NNTP-Posting-Date: | 26 Jan 2000 22:57:39 GMT
|
X-Mailer: | Mozilla 4.6 [en] (Win98; I)
|
X-Accept-Language: | en
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
This is a multi-part message in MIME format.
--------------A947476FB1104B8E0082018A
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
BASCC Basic to C++ converter .22 Pre release available at
http://www.internetfun.net/bascc/
Comments appreciated.
--------------A947476FB1104B8E0082018A
Content-Type: text/plain; charset=us-ascii;
name="bascc.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="bascc.txt"
Hello and welcome to BASCC.C the worlds first portable ANSI C program that
you can compile on any ANSI C platform (some portable libraries required)
and use it to convert QuickBASIC, PowerBasic for dos and STANDARD Basic
(Without Line Numbers) to C code that will also compile on any ANSI C
platform. Now use the ease of BASIC programming to write fast efficient
C code in a lot less time than coding directly in c++. This curses enabled
converter allows for BASIC screen formating and positioning coverting the
code to curses enabled C++ code. While this program is meant to be a tool
in porting code there are some programs you may find where it will convert
and compile 100% without any work on your part.
To use this converter program you must have the following.
An ANSI C compiler, GNU works fine unix/DJGPP.
A curses library of some sort such as CURSES/NCURSES or "PDCURSES 2.4" for DJGPP
(PDCURSES 2.3 might work but PDCURSES2.2 Does not work).
Some knowledge of C/C++ programming. This program may not do 100% of the work
for you.
Completed STATEMENTS and FUNCTIONS that are known to work.
OPEN "MYFILE.TXT" FOR INPUT AS #1
OPEN "MYFILE.TXT" FOR OUTPUT AS #1
CLOSE #1
DO
LOOP
DO UNTIL ((1=0 AND 0=1) OR 0=1 AND 1=0 OR NOT bill)
EXIT DO
PRINT "Hello World."
PRINT "Hello ";
PRINT "World."
PRINT Bob // the print statement will print any variable string or other.
DIM bob AS INTEGER, mike AS STRING, fred AS SINGLE, tom AS DOUBLE
//multiple variables dimentioned on the same line ok.
LINE INPUT #1, mike
INPUT tom
LOCATE 12,3
CLS
fred=1.234567
bob=3
--------------A947476FB1104B8E0082018A--
- Raw text -