Dec 082017
 
A Basic interpreter written entirely in "C". It can be used as a learning tool for writting your own interpreter or just to see how things are done. By Michael Lavett.

Full Description of File


A Basic interpreter written entirely in "C".
It can be used as a learning tool for
writting your own interpreter or just to see
how 'things' are done. By Michael Lavett,
derived from "C: Power User's Guide", by
Herb Schildt


File BASIC-C.ZIP from The Programmer’s Corner in
Category BASIC Language
A Basic interpreter written entirely in “C”. It can be used as a learning tool for writting your own interpreter or just to see how things are done. By Michael Lavett.
File Name File Size Zip Size Zip Type
BASIC.C 15941 4766 deflated
BASIC.DOC 904 547 deflated
BASIC.EXE 35496 21836 deflated
DEFINES.H 640 260 deflated
FILE_ID.DIZ 230 175 deflated
FUNCS.C 7297 2242 deflated
LABELS.C 2213 853 deflated
MAKEFILE 182 136 deflated
MAKEFILE.USG 208 144 deflated
TERM.C 2400 772 deflated
TERM.H 272 154 deflated
TEST1.BAS 325 195 deflated
TEST2.BAS 1288 574 deflated
TEST3.BAS 249 150 deflated
TEST4.BAS 276 169 deflated
TEST5.BAS 236 154 deflated
TEST6.BAS 706 255 deflated
TEST7.BAS 167 114 deflated
TEST8.BAS 124 89 deflated
TPCREAD.ME 199 165 deflated

Download File BASIC-C.ZIP Here

Contents of the BASIC.DOC file


This basic interpreter is derived from Herb Schildt's
interpreter in the book:

C: Power User's Guide

I have done extensive rewriting for compatibility, and
also ported it to UNIX. It has been tested on version 5.3 UNIX

a. it now dynamically allocates memory
for the program file.
b. broke the single source file into
multiple files.
c. termcap capability if on UNIX.
d. enhanced program file name recognition.

I also added several functions.

See "defines.h" and "*.bas" for clues to functions.

A makefile for UNIX 5.3 and MSC 5.1 are included. This
is an excellent start to write your own interpreter or
language. (Plus it is just fun to tinker with.)

I am in the process of implementing strings and arrays.
Any comments or improvements will be greatly appreciated.

Michael Lavett
Birmingham, Al.
USENET: gatech!scbhq!mflpc!mfl
work: 205-988-1556


 December 8, 2017  Add comments

Leave a Reply