Skip to content

Commit b422558

Browse files
committed
Version 1.50 rc2
1 parent 64dbd78 commit b422558

File tree

4 files changed

+360
-147
lines changed

4 files changed

+360
-147
lines changed

bfbasic/HOW TO RELEASE.txt

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
1. Make sure your Eclipse project is synchronized with GitHub.
1+
1. Update "Version History" in README file in Eclipse project with release notes.
22

3-
2. Within Eclipse, go to File > Export > Java Runnable JAR File
3+
2. Make sure your Eclipse project is synchronized with GitHub.
4+
5+
3. Within Eclipse, go to File > Export > Java Runnable JAR File
46

57
Select run configuration bfbasic - bfbasic and a destination folder for the .jar file.
68
Name the .jar file bfbasic.jar.
79

8-
2. Zip together:
10+
4. Zip together:
911

1012
a. the newly created bfbasic.jar
1113
b. Following files that can be found inside the main folder of the Java project:
@@ -15,5 +17,5 @@
1517
LICENSE
1618
README
1719

18-
3. Create a new release in GitHub and upload the newly created .zip file as binaries for the release.
20+
5. Create a new release in GitHub and upload the newly created .zip file as binaries for the release.
1921

bfbasic/README

+22
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,28 @@ Known Problems
206206

207207
Version History
208208
---------------
209+
1.50 10 Jul 2005 [Jon] (Release candidate 2)
210+
* Fixed bug in CASE handling which prevented compiling
211+
on some implementations
212+
213+
1.50 09 Jul 2005 [Jon] (Release candidate 1)
214+
* Added -t prints $var=cell line for bfdebug
215+
* Added FOR...STEP (for -ve STEP use 0-#)
216+
* Added SELECT CASE flow control, can be nested
217+
SELECT CASE expr, CASE expr, END SELECT, EXIT SELECT
218+
* Added INCLUDE for inline compilation of external files
219+
* Added LIBRARY to INCLUDE libraries at end of program
220+
* Change: Display filename on compile error
221+
* Line number correct for current file
222+
223+
1.42 30 Jun 2005 [Jeff]
224+
* Added --?, --help, /? (same as -?)
225+
* Added -dd (same as -D)
226+
* Added -ddd, purely debug mode
227+
* -dd and -ddd do not print @ as last char of file
228+
* Changed default extension to .b instead of .bf
229+
* -ddd prints $var=cell line for bfdebug
230+
209231
1.41 29 Jun 2005
210232
* FOR...NEXT code rewritten, speed/size improvements and
211233
"FOR var = 0 TO 255" now works! [Jon]

bfbasic/src/AlgebraicExpression.java

+10-10
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ public String parse() {
209209
operand1 = ((Integer) operands.peek()).intValue();
210210
int operand1Type = ((Integer) operandTypes.peek()).intValue();
211211
if (operand1Type >= 0) {
212-
if (bfbasic._debug) {
212+
if (bfbasic._debug > 0) {
213213
parsed += "\n(_T" + operand1 + "=" + operand1Type + ")\n";
214214
}
215215
parsed += "@_T" + operand1 + "[-]" + addTo(operand1Type);
@@ -225,7 +225,7 @@ public String parse() {
225225
*/
226226
String code = getCode("_T" + operand1, operator, "_T" + operand2, simple);
227227
if (code == null) {
228-
if (bfbasic._debug) {
228+
if (bfbasic._debug > 0) {
229229
parsed += "\n(_T" + operand2 + "=" + simple + ")\n";
230230
}
231231
parsed += "@_T" + operand2 + "[-]" + addTo(simple);
@@ -242,7 +242,7 @@ public String parse() {
242242
// @T0 ([-]) - T0=255
243243
// @V1[@T0-@V1-] T0=T0-V1:V1=0
244244
// @T0[@V1+@T0-] V1=T0:T0=0
245-
if (bfbasic._debug) {
245+
if (bfbasic._debug > 0) {
246246
parsed += "\n(_T" + (_tempvar - 1) + "=NOT(_T" + (_tempvar - 1) + "))\n";
247247
}
248248
parsed += "@_0-@_T" + (_tempvar - 1) + "[@_0-@_T" + (_tempvar - 1)
@@ -254,7 +254,7 @@ public String parse() {
254254
// @V1+
255255
// @V2>>[>>]<-]<[<<]>[>[>>]<+<[<<]>-]>[>>]<<[-<<]
256256

257-
if (bfbasic._debug) {
257+
if (bfbasic._debug > 0) {
258258
parsed += "\n(_T" + (_tempvar - 1) + "=" + funct + "(_T"
259259
+ (_tempvar - 1) + "))\n";
260260
}
@@ -287,7 +287,7 @@ public String parse() {
287287
operandTypes.push(new Integer(val)); // means simple
288288
_tempvar++;
289289
} else if (_tokentype == TOKEN_VARIABLE) {
290-
if (bfbasic._debug) {
290+
if (bfbasic._debug > 0) {
291291
parsed += "\n(_T" + _tempvar + "=" + _token + ")\n";
292292
}
293293
if (_token.equalsIgnoreCase("INKEY")) {
@@ -388,7 +388,7 @@ public String parse() {
388388
operand1 = ((Integer) operands.peek()).intValue();
389389
int operand1Type = ((Integer) operandTypes.peek()).intValue();
390390
if (operand1Type >= 0) {
391-
if (bfbasic._debug) {
391+
if (bfbasic._debug > 0) {
392392
parsed += "\n(_T" + operand1 + "=" + operand1Type + ")\n";
393393
}
394394
parsed += "@_T" + operand1 + "[-]" + addTo(operand1Type);
@@ -404,7 +404,7 @@ public String parse() {
404404
*/
405405
String code = getCode("_T" + operand1, operator, "_T" + operand2, simple);
406406
if (code == null) {
407-
if (bfbasic._debug) {
407+
if (bfbasic._debug > 0) {
408408
parsed += "\n(_T" + operand2 + "=" + simple + ")\n";
409409
}
410410
parsed += "@_T" + operand2 + "[-]" + addTo(simple);
@@ -427,7 +427,7 @@ public String parse() {
427427
operand1 = ((Integer) operands.peek()).intValue();
428428
int operand1Type = ((Integer) operandTypes.peek()).intValue();
429429
if (operand1Type >= 0) {
430-
if (bfbasic._debug) {
430+
if (bfbasic._debug > 0) {
431431
parsed += "\n(_T" + operand1 + "=" + operand1Type + ")\n";
432432
}
433433
parsed += "@_T" + operand1 + "[-]" + addTo(operand1Type);
@@ -443,7 +443,7 @@ public String parse() {
443443
*/
444444
String code = getCode("_T" + operand1, operator, "_T" + operand2, simple);
445445
if (code == null) {
446-
if (bfbasic._debug) {
446+
if (bfbasic._debug > 0) {
447447
parsed += "\n(_T" + operand2 + "=" + simple + ")\n";
448448
}
449449
parsed += "@_T" + operand2 + "[-]" + addTo(simple);
@@ -474,7 +474,7 @@ public String parse() {
474474
//------------------------------------------------------------------
475475
String getCode(String operand1, String operator_, String operand2, int simple) {
476476
String code = "";
477-
if (bfbasic._debug) {
477+
if (bfbasic._debug > 0) {
478478
if (operand1.equals("_T-1")) {
479479
code += "\n(_T" + operand2 + "=-_T" + operand2 + ")\n";
480480
} else if (simple < 0) {

0 commit comments

Comments
 (0)