"SfR Fresh" - the SfR Freeware/Shareware Archive


up home help comments

About: A very simple BASIC interpreter
Alternative downloads: Z | gz | bz2 | zip

fbasic.c (18 Apr 2001, 125489 Bytes)

File type: ASCII C program text
Short impression (the first 25 of 6952 lines):
/* fbasic.c
 *
 * A very simple BASIC interpreter. Quite compatible with Microsoft
 * MBASIC (CP/M) and GWBASIC (MS-DOS).
 *
 * Requires garbage collecting malloc (no free's are done)
 * There are three areas where memory can be reclaimed
 *	- random file buffers
 *	- string temporaries
 *	- variables that have been unlinked
 * Currently uses the Boehm-Demers-Weiser conservative garbage
 * collector.
 *
 * Copyright (c) 2000, 2001, Fridtjof Weigel
 * All Rights Reserved
 */

/* Standard headers */

/* Comment this out to build under Solaris */
#define _XOPEN_SOURCE	500

#include 
#include 
#include