Article View: comp.sys.ibm.pc.programmer
Article #718Re: BASIC to C translator program
From: Ronald van Loon
Date: Tue, 12 Jun 1990 14:06
Date: Tue, 12 Jun 1990 14:06
41 lines
1866 bytes
1866 bytes
In <1990Jun11.200020.5176@Neon.Stanford.EDU> jkl@Neon.Stanford.EDU (John Kallen) writes:
||In article <1990Jun11.190944.23272@welch.jhu.edu> glenn@welch.jhu.edu (Glenn M. Mason) writes:
||>
||>Does anyone out there know of a public-domain/commercial BASIC to C
||>translator program?
||I recall a translator called "Minnow Bear" that translated Digital
||Research BASIC to C. As I recall, it did is job fairly well. The code
||it produced was a Bear to read, though :-)
There is a program called Basic To C, which translates BASIC programs to C code ; it even tries
to eliminate GOTOs. Anyway, there's a PROFESSIONAL and a NORMAL version ; NORMAL will compile
up to 1000 lines. The same company released a PASCAL to C translator as well.
The code is not always easy to read, and integers without a '%' in the source, will be translated
to floats.
So it'll translate
10 x = 10
20 end
to :
float x_float ;
{ ....
x = 10.0 ;
}
I can't think of the name of the company right now ; don't mail me, I won't read it till september.
Hope this helps though.
--
Ronald van Loon (rloon@praxis.cs.ruu.nl)
"If you want to make it big in life, remember, take care,
You must know whom to kiss, and also where..."
- A Little Nightmare Music, by PDQ Bach
Technical Details
Message-ID:
<3439@ruuinf.cs.ruu.nl>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!ns-mx!iowasp!maverick.ksu.ksu.edu!ux1.cso.uiuc.edu!iuvax!noose.ecn.purdue.edu!samsung!uakari.primate.wisc.edu!sdd.hp.com!ucsd!usc!snorkelwacker!bloom-beacon!eru!luth!sunic!mcsun!hp4nl!ruuinf!praxis!rloonReferences:
<1990Jun11.190944.23272@welch.jhu.edu> <1990Jun11.200020.5176@Neon.Stanford.EDU>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!ns-mx!iowasp!maverick.ksu.ksu.edu!ux1.cso.uiuc.edu!iuvax!noose.ecn.purdue.edu!samsung!uakari.primate.wisc.edu!sdd.hp.com!ucsd!usc!snorkelwacker!bloom-beacon!eru!luth!sunic!mcsun!hp4nl!ruuinf!praxis!rloon From: rloon@praxis.cs.ruu.nl (Ronald van Loon) Newsgroups: comp.sys.ibm.pc.programmer Subject: Re: BASIC to C translator program Message-ID: <3439@ruuinf.cs.ruu.nl> Date: 12 Jun 90 14:06:03 GMT References: <1990Jun11.190944.23272@welch.jhu.edu> <1990Jun11.200020.5176@Neon.Stanford.EDU> Sender: news@ruuinf.cs.ruu.nl Lines: 41