Debian Codegraph @

README

raw
1
2
3 README file for
4
5
6 Bywater BASIC Interpreter/Shell, version 2.20
7 ---------------------------------------------
8
9 Copyright (c) 1993, Ted A. Campbell
10 for bwBASIC version 2.10, 11 October 1993
11
12 Version 2.20 modifications by Jon B. Volkoff,
13 25 November 1995
14
15
16
17 DESCRIPTION:
18
19 The Bywater BASIC Interpreter (bwBASIC) implements a large
20 superset of the ANSI Standard for Minimal BASIC (X3.60-1978)
21 and a significant subset of the ANSI Standard for Full BASIC
22 (X3.113-1987) in C. It also offers shell programming facilities
23 as an extension of BASIC. bwBASIC seeks to be as portable
24 as possible.
25
26 This version of Bywater BASIC is released under the terms of the
27 GNU General Public License (GPL), which is distributed with this
28 software in the file "COPYING". The GPL specifies the terms
29 under which users may copy and use the software in this distribution.
30
31 A separate license is available for commercial distribution,
32 for information on which you should contact the author.
33
34
35 IMPROVEMENTS OVER PREVIOUS VERSION (2.10):
36
37 * Plugged numerous memory leaks, resolved memory overruns and allocation
38 difficulties.
39
40 * General cleanup and bug fixes, too many to list in detail here.
41 The major problem areas addressed were:
42
43 - RUN command with file name argument
44 - nested and cascaded FOR-NEXT loops
45 - PRINT USING
46 - EOF, LOF functions
47 - string concatenation
48 - operator hierarchy
49 - multi-level expression evaluation
50 - hex constant interpretation
51 - hex and octal constants in INPUT and DATA statements
52
53 * Added a CLOSE all files feature (when no argument supplied).
54
55 * Added a unary minus sign operator.
56
57 * Added a MID$ command to complement the MID$ function.
58
59 * Added a RENUM facility in a standalone program.
60
61 * Added checking in configure for unistd.h (important on Sun systems).
62
63
64 OBTAINING THE SOURCE CODE:
65
66 The source code for bwBASIC 2.20 is available immediately by
67 anonymous ftp. To obtain the source code, ftp to site ftp.netcom.com,
68 cd to pub/rh/rhn and get the file bwbasic-2.20.uu. Or you may receive
69 a copy by e-mail by writing to Jon Volkoff at [email protected].
70
71
72 COMMUNICATIONS:
73
74 email: [email protected] (for Ted Campbell)
75 [email protected] (for Jon Volkoff)
76
77
78 A LIST OF BASIC COMMANDS AND FUNCTIONS IMPLEMENTED in bwBASIC 2.20:
79
80 Be aware that many of these commands and functions will not be
81 available unless you have set certain flags in the header files.
82
83 ABS( number )
84 ASC( string$ )
85 ATN( number )
86 CALL subroutine-name
87 CASE constant | IF partial-expression | ELSE
88 CHAIN file-name
89 CHDIR pathname
90 CHR$( number )
91 CINT( number )
92 CLEAR
93 CLOSE [[#]file-number]...
94 CLS
95 COMMON variable [, variable...]
96 COS( number )
97 CSNG( number )
98 CVD( string$ )
99 CVI( string$ )
100 CVS( string$ )
101 DATA constant[,constant]...
102 DATE$
103 DEF FNname(arg...)] = expression
104 DEFDBL letter[-letter](, letter[-letter])...
105 DEFINT letter[-letter](, letter[-letter])...
106 DEFSNG letter[-letter](, letter[-letter])...
107 DEFSTR letter[-letter](, letter[-letter])...
108 DELETE line[-line]
109 DIM variable(elements...)[variable(elements...)]...
110 DO NUM|UNNUM
111 DO [WHILE expression]
112 EDIT (* depends on variable BWB.EDITOR$)
113 ELSE
114 ELSEIF
115 END FUNCTION | IF | SELECT | SUB
116 ENVIRON variable-string$ = string$
117 ENVIRON$( variable-string )
118 EOF( device-number )
119 ERASE variable[, variable]...
120 ERL
121 ERR
122 ERROR number
123 EXIT FOR|DO
124 EXP( number )
125 FIELD [#] device-number, number AS string-variable [, number AS string-variable...]
126 FILES filespec$ (* depends on variable BWB.FILES$)
127 FOR counter = start TO finish [STEP increment]
128 FUNCTION function-definition
129 GET [#] device-number [, record-number]
130 GOSUB line | label
131 GOTO line | label
132 HEX$( number )
133 IF expression THEN [statement [ELSE statement]]
134 INKEY$
135 INPUT [# device-number]|[;]["prompt string";]list of variables
136 INSTR( [start-position,] string-searched$, string-pattern$ )
137 INT( number )
138 KILL file-name
139 LEFT$( string$, number-of-spaces )
140 LEN( string$ )
141 LET variable = expression
142 LINE INPUT [[#] device-number,]["prompt string";] string-variable$
143 LIST line[-line]
144 LOAD file-name
145 LOC( device-number )
146 LOCATE
147 LOF( device-number )
148 LOG( number )
149 LOOP [UNTIL expression]
150 LSET string-variable$ = expression
151 MERGE file-name
152 MID$( string$, start-position-in-string[, number-of-spaces ] )
153 MKD$( number )
154 MKDIR pathname
155 MKI$( number )
156 MKS$( number )
157 NAME old-file-name AS new-file-name
158 NEW
159 NEXT counter
160 OCT$( number )
161 ON variable GOTO|GOSUB line[,line,line,...]
162 ON ERROR GOSUB line | label
163 OPEN O|I|R, [#]device-number, file-name [,record length]
164 file-name FOR INPUT|OUTPUT|APPEND AS [#]device-number [LEN = record-length]
165 OPTION BASE number
166 POS
167 PRINT [# device-number,][USING format-string$;] expressions...
168 PUT [#] device-number [, record-number]
169 RANDOMIZE number
170 READ variable[, variable]...
171 REM string
172 RENUM
173 RESTORE line
174 RETURN
175 RIGHT$( string$, number-of-spaces )
176 RMDIR pathname
177 RND( number )
178 RSET string-variable$ = expression
179 RUN [line]|[file-name]
180 SAVE file-name
181 SELECT CASE expression
182 SGN( number )
183 SIN( number )
184 SPACE$( number )
185 SPC( number )
186 SQR( number )
187 STOP
188 STR$( number )
189 STRING$( number, ascii-value|string$ )
190 SUB subroutine-name
191 SWAP variable, variable
192 SYSTEM
193 TAB( number )
194 TAN( number )
195 TIME$
196 TIMER
197 TROFF
198 TRON
199 VAL( string$ )
200 WEND
201 WHILE expression
202 WIDTH [# device-number,] number
203 WRITE [# device-number,] element [, element ]....