AminetAminet
Search:
84716 packages online
About
Recent
Browse
Search
Upload
Setup
Services

dev/lang/iBASIC_beta2.lha

Mirror:Random
Showing:m68k-amigaosppc-amigaosppc-morphosi386-arosi386-amithlonppc-warpupppc-powerupgeneric
No screenshot available
Short:very basic BASIC Interpreter v1.0 beta
Author:mbergmann-sh at web.de (Michael Bergmann)
Uploader:Michael Bergmann
Type:dev/lang
Version:1.0
Requires:some love for BASIC coding
Architecture:m68k-amigaos
Distribution:Aminet
Kurz:minimalistischer BASIC Interpreter
Date:2023-05-11
Download:http://aminet.net/dev/lang/iBASIC_beta2.lha - View contents
Readme:http://aminet.net/dev/lang/iBASIC_beta2.readme
Downloads:226

About iBASIC beta2
==================
This is an UPDATE to iBASIC beta.
- changed source to compile with SAS/C v6.58 due to
  runtime issues with gcc v2.95
- added large code/data model with STACKCHECK and STACKEXTEND

iBASIC is a very basic BASIC interpreter that is based on a source
I found while plundering UNIX repositories on GitHub. It is originally
coded by a guy named JERRY WILLIAMS JR., who seems to be an ancient UNIX
guru.

I enhanced the source by a help function and started implementing a
function to load a source when the program is allready started - but 
that one is not fully working yet.

Source can be compiled either with gcc, vbcc or SAS/C. As allready said,
I changed to compile with SAS/C v6.58 because of runtime issues with 
gcc v2.95

Compile with the following options: 
 
   DATA=FAR CODE=FAR CPU=WHATEVER_YOU_WANT MATH=WHATEVER_YOU_WANT \
   COMMENTNEST OPTIMIZE \
   LINK OPTIMIZERINLINELOCAL SAVEDS VERBOSE NOERRORCONSOLE \
   OPTIMIZERSCHEDULER STACKEXTEND NOICONS OPTIMIZERTIME \
   OPTIMIZERALIAS PROGRAMNAME=/bin/iBASIC \
   OPTIMIZERCOMPLEXITY=128 OPTIMIZERDEPTH=128 OPTIMIZERRECURDEPTH=128
   
In order to compile a standard version of iBASIC using SAS/C, 
    1. open a shell
    2. CD to src
    3. Edit smakefile to your needs
    4. type 'smake'
Your new executable is to be found in the 'bin' folder.

It's IMHO useless to compile with FPU options, since the source doesn't 
use floating point calculations. In fact, even versions compiled without
any math library run flawless. Nevertheless, I've added binaries for
all targets for testing purposes.

iBASIC consists of a few keywords only - but its pretty good at them, 
nevertheless.

USING iBASIC:
Basic source has to be edited in a standard ASCII text editor - there's
no integrated editor like the one that f.e. bwBASIC has.

To start a programm, iBASIC must be in your path, Its not a bad idea to 
copy it to C:

Simply type 'iBASIC <your_src.bas>' to fire up your BASIC program. In
fact, a source doesn't even need to have a certain suffix - any name 
will do. It's just good practice to use .bas as a suffix.

iBASIC is in no way compatible to other BASIC dialects, like bwBASIC, 
AQB, AmigaBASIC, and so on. Start iBASIC and type 'help' for a summary 
of available keywords.

You will find some examples on iBASIC's syntax in the examples directory 
of this archive.

USING THE TEST SCRIPT:
In order to make use of test_me.bat, you will have to unpack 
iBASIC_beta2.lha to RAM: first.

Recent versions of iBASIC can allways be found in the download section 
of my AMIGA website first: http://amiga.mbergmann-sh.de

That's it - have fun!


Micha B. 
05/2023


Contents of dev/lang/iBASIC_beta2.lha
PERMISSION  UID  GID    PACKED    SIZE  RATIO METHOD CRC     STAMP     NAME
---------- ----------- ------- ------- ------ ---------- ------------ ----------
[unknown]                 1381    1656  83.4% -lh5- cdb5 May 11 09:33 iBASIC_beta2/bin.info
[unknown]                 1384    1656  83.6% -lh5- 4753 May 11 09:33 iBASIC_beta2/examples.info
[unknown]                 6178   11284  54.8% -lh5- 7e2d Oct 18  1991 iBASIC_beta2/More
[unknown]                 1565    2972  52.7% -lh5- 9c52 May 11 09:47 iBASIC_beta2/README
[unknown]                 1128    1447  78.0% -lh5- 2425 May 11 09:33 iBASIC_beta2/README.info
[unknown]                 1380    1656  83.3% -lh5- 38f7 May 11 09:33 iBASIC_beta2/src.info
[unknown]                  453     825  54.9% -lh5- 8e90 May 11 07:05 iBASIC_beta2/src/ibasic.h.info
[unknown]                 1367    1909  71.6% -lh5- f1df May 11 09:33 iBASIC_beta2/test_me.bat.info
[unknown]                  365     822  44.4% -lh5- 48a2 May 11 07:05 iBASIC_beta2/src/Debug.info
[unknown]                  534     834  64.0% -lh5- 1a66 May 11 07:05 iBASIC_beta2/src/Edit.info
[unknown]                  640    1651  38.8% -lh5- 11b3 May  9 00:29 iBASIC_beta2/src/ibasic.c
[unknown]                  501     824  60.8% -lh5- fc43 May 11 07:05 iBASIC_beta2/src/ibasic.c.info
[unknown]                 5120   16471  31.1% -lh5- e75e May  9 00:19 iBASIC_beta2/src/ibasic.h
[unknown]                  296     727  40.7% -lh5- d5d4 May  8 15:02 iBASIC_beta2/src/shellattrs.h
[unknown]                  185     239  77.4% -lh5- 7915 May 11 07:58 iBASIC_beta2/src/smakefile
[unknown]                  487     837  58.2% -lh5- da5e May 11 07:05 iBASIC_beta2/src/Build.info
[unknown]                 1711    2632  65.0% -lh5- a81a May 11 06:52 iBASIC_beta2/src/Debug
[unknown]                  443     838  52.9% -lh5- 3719 May 11 07:05 iBASIC_beta2/src/Find.info
[unknown]                  155     268  57.8% -lh5- b63c May 11 08:54 iBASIC_beta2/src/SCOPTIONS
[unknown]                  226     482  46.9% -lh5- 0660 May 11 07:05 iBASIC_beta2/src/shellattrs.h.info
[unknown]                  198     834  23.7% -lh5- 3848 May 11 07:05 iBASIC_beta2/src/smakefile.info
[unknown]                  271     990  27.4% -lh5- 1f74 May 11 08:04 iBASIC_beta2/test_me.bat
[unknown]                14607   28840  50.6% -lh5- 62c2 May 11 07:07 iBASIC_beta2/bin/iBASIC_ffp_040
[unknown]                14590   28852  50.6% -lh5- a674 May 11 07:10 iBASIC_beta2/bin/iBASIC_ffp_060
[unknown]                14610   28840  50.7% -lh5- 6cdb May 11 07:24 iBASIC_beta2/bin/iBASIC_ieee_020
[unknown]                  158     245  64.5% -lh5- f595 May  8 21:09 iBASIC_beta2/examples/forwhile.bas
[unknown]                  637    1524  41.8% -lh5- 90a4 May  8 09:14 iBASIC_beta2/examples/help.bas
[unknown]                  773    1771  43.6% -lh5- 0c31 May  8 16:26 iBASIC_beta2/examples/test.bas
[unknown]                14610   28840  50.7% -lh5- 6cdb May 11 07:17 iBASIC_beta2/bin/iBASIC_ffp_020
[unknown]                14610   28840  50.7% -lh5- 6cdb May 11 07:16 iBASIC_beta2/bin/iBASIC_ffp_030
[unknown]                14607   28840  50.6% -lh5- 62c2 May 11 07:31 iBASIC_beta2/bin/iBASIC_ieee_040
[unknown]                14590   28852  50.6% -lh5- a674 May 11 07:32 iBASIC_beta2/bin/iBASIC_ieee_060
[unknown]                14788   29176  50.7% -lh5- bf34 May 11 07:34 iBASIC_beta2/bin/iBASIC_ieee_a68k
[unknown]                14791   29176  50.7% -lh5- 0dc0 May 11 07:38 iBASIC_beta2/bin/iBASIC_nomath_010
[unknown]                14610   28840  50.7% -lh5- 6cdb May 11 07:25 iBASIC_beta2/bin/iBASIC_ieee_030
[unknown]                14616   28840  50.7% -lh5- f701 May 11 07:40 iBASIC_beta2/bin/iBASIC_nomath_020
[unknown]                14616   28840  50.7% -lh5- f701 May 11 07:42 iBASIC_beta2/bin/iBASIC_nomath_030
[unknown]                14613   28840  50.7% -lh5- f918 May 11 07:44 iBASIC_beta2/bin/iBASIC_nomath_040
[unknown]                14593   28852  50.6% -lh5- 9771 May 11 07:45 iBASIC_beta2/bin/iBASIC_nomath_060
[unknown]                14791   29176  50.7% -lh5- 0dc0 May 11 07:36 iBASIC_beta2/bin/iBASIC_nomath_a68k
[unknown]                 1381    1656  83.4% -lh5- 634f May 11 09:33 iBASIC_beta2.info
[unknown]                14788   29176  50.7% -lh5- bf34 May 11 08:11 iBASIC_beta2/bin/iBASIC
---------- ----------- ------- ------- ------ ---------- ------------ ----------
 Total        42 files  263347  519870  50.7%            May 12 04:54

Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>