GithubHelp home page GithubHelp logo

nerun / bwbasic Goto Github PK

View Code? Open in Web Editor NEW
21.0 3.0 7.0 5.21 MB

The Bywater BASIC Interpreter (bwBASIC) implements a large superset of the ANSI Standard for Minimal BASIC (X3.60-1978) and a significant subset of the ANSI Standard for Full BASIC (X3.113-1987) in C.

License: GNU General Public License v2.0

C 29.57% Makefile 0.03% BASIC 60.36% FreeBasic 0.39% Batchfile 0.10% VBA 0.01% Shell 1.59% HTML 7.83% IDL 0.08% Prolog 0.04% Logos 0.01%
basic bywater-basic bwbasic interpreter

bwbasic's Issues

next without for

I wrote a little program with nested set of loops, and the program crashed with a next without for error reported at the NEXT of the outer loop. The program runs fine on a couple of other interpreters, Blassic and PC Basic. Here's the code:
100 IF ((D=0) OR (D=-2)) THEN D=D+1:REM avoid divide by 0
110 FOR N=-100 TO 100
120 X=3N + 6N/D - 5
130 IF ABS(N-X)<1E-12 THEN PRINT D,N,X
140 REM chr$(27) is escape key
150 A$=INKEY$:IF A$=CHR$(27) THEN 180
160 NEXT N
170 NEXT D

Bug in READ statement

The following little program did a major error in handling read statements to assign to a string array in a loop. Instead of putting the data terms into the string array, it put the array index numbers into the array (1-7).
30 REM NEXT SEVERAL LINES FILLS PLACE NAME ARRAY
40 DATA ONES,TENS,HUNDREDS,THOUSANDS,TEN_THOUSANDS,HUNDRED_THOUSANDS,MILLIONS
50 DIM NUM$(10)
60 FOR I=1 TO 7:READ NUM$(I):NEXT

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.