A tiny BASIC interpreter with C sourcecode.

Submitted By: WEBMASTER
Rating: starstarstarhalf star (Rate It)
Share: Share By Email By Email



NOTE: Some downloads must be obtained through publishers´s site.
Do you want to get your software listed on this site? Go to our submissions area.

Screenshot


Details

File Name:
BAS-INT.ZIP
Product homepage:
Order page:
Languages:
Basic, C
Platforms:
Unknown
Release date:
1/1/1990
License:
Unknown
Size:
15 KB
Price/Fee (US$):
Unknown
Number of downloads:
24656

Comments (17)

Cute, but not very useful. star   Posted by: BASIC Friend on Monday, October 29, 2001

Take a look at it. It's fun to play with.

found what I was looking for starstarstar   Posted on Saturday, March 16, 2002

one can rarely find interpreter documentation these days...

very good for teaching starstarstarstarstar   Posted on Thursday, August 21, 2003

very good for teaching

Institute of Programming Technology R.A starstar   Posted on Thursday, August 19, 2004

Okay, that´s a good start. You need to go back and restructur some of the code in order to append it properly. Thanks for the upload anyways.

Val Hismeth

Superb piece of instructional code starstarstarstarstar   Posted on Monday, August 30, 2004

An excellent mini-interpreter; perfect starting point from which to learn and extend.

Works nicely starstarstarstar   Posted by: Z_Man on Wednesday, July 20, 2005

Works nicely on CRLF files, but on Unix's LF files it has problems. But I fixed that... heheh

LinuxMaven (Not rated)   Posted on Wednesday, December 14, 2005

Compiles and runs test programs flawlessly on
Linux. Great starting point for developing
a multi-platform, specialized interpreter of your own.

Interesting... starstarstarstar   Posted by: Dominick on Saturday, December 23, 2006

how everyone commends this file for it's edifying influence, but when I keep looking for different people who are working with this interpreter or any one who has commented on it, no one seems to have treated it with the respect it deserves--commenting it (though the original comments make sense to a cs0 level student) and explaining all the parts nor has anyone tried to modify it--at least as far as I can see with my search.

Downloaded this yesterday. So far I've compiled it with KDevelop in linux and with MinGW in Windows 2000 and I have one failed attempt at hacking in a remark command. I also printed it out: 29 pages double-spaced or 18 pages (normally) long with no margins and a 12 pt font. Not too shabby for 800 lines of code.

Also, I cannot find the author *anywhere*. I can find what seems like the originating site, and I have plans to e-mail the web-master or whoever has an e-mail address there... But it's rather obscure as far as research into other programmer's work with it.

Very Good starstarstarstarstar   Posted by: Nick on Sunday, September 28, 2008

Easy to learn and extend.

Version starstarstarstarstar   Posted by: James Brooks on Sunday, January 25, 2009

Which version of BASIC does this origniate from?

Version starstarstarstar   Posted by: Bence Dobos on Wednesday, January 28, 2009

Non of I think.
I started to modify to interpret C64 Basic v2 command set :)

Rewrote it in C++ with minor changes starstarstarstarstar   Posted by: kangghee on Monday, February 23, 2009

Although not fully a CPP file, it can be compiled with GNU gpp. Very little changes have been done to the original working c file. Uploaded a copy to this site calling it BAS-INT-CPP.zip already. If it gets approved, you will be able to find it. If not, you can email me at kangghee at hotmail.com for the file.

Very Good starstarstarstarstar   Posted by: nicon on Tuesday, March 03, 2009

Compiles fine with Tiny C compiler TCC on Windows XP.
Great starting point, easy to extend.

Code by Herbert Schildt starstarstarstarstar   Posted by: Ubaidullah Nubar on Monday, April 20, 2009

This code is from the book "Schildt's Expert C++". According to him, he used a subset of standard BASIC as the target.

Use ScriptBasic Instead star   Posted by: JRS on Sunday, August 09, 2009

ScriptBasic is a traditional Basic dialect that's cross platform, and designed from the ground up to be embeddable. It's distributed as a command line interpreter and multi-threaded web server.

http://www.scriptbasic.org

I don't know what to make of this starstarstar   Posted by: Hans Bezemer on Monday, November 02, 2009

On the downside, it has all the characteristics of a quick, ugly hack. I like so few possible prototype declarations as possible to I eliminated that one first. Then I founds loads of badly vectored, superfluous and even buggy (GOSUB stack!) code. Passing local variable addresses is BAD style and completely unneeded. Then I optimized it even more. On the upside: it is easy to understand, no myriad of C++ like structures, relatively small functions and consequently easy to understand and expand. A REM statement is easy: simply map it to find_eol().

It is not Tiny BASIC starstarstarstarstar   Posted by: Alan on Friday, November 04, 2011

I fully appreciate the efforts of the author, was it Herbert Schildt who published it in his book, or someone else. And i find every effort to write a simple code, to be good. If 800 lines can be considered to be simple, but anyway.

So it is a nice small BASIC interpreter, but one problem with it is that it is not a Tiny BASIC interpreter. Tiny BASIC had a very precise grammar, like Tiny BASIC never had FOR...NEXT loop, had LIST and RUN statements, keywords were only in upper case, etc.

There are other open source implementations around which implement the real Tiny BASIC, and are more advanced as well so that they enable to do the things. No, ScriptBasic is not one of these because it is not Tiny BASIC either.

Add Your Rating

(Not published)
star
starstar
starstarstar
starstarstarstar
starstarstarstarstar
 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.