Code Monkey home page Code Monkey logo

vintage-basic's Introduction

vintage-basic

Vintage BASIC Interpreter

vintage-basic's People

Contributors

jonahb avatar lylek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vintage-basic's Issues

Build Failure

$ cabal v2-build

src/Language/VintageBasic/Interpreter.hs:354:17: error:
• No instance for (Control.Monad.Fail.MonadFail
(Control.Monad.CPST.CPST (Excep Result BasicRT ()) BasicRT))
arising from a do statement
with the failable pattern ‘(FloatVal index)’
• In a stmt of a 'do' block:
(FloatVal index) <- getScalarVar control
In the expression:
do (FloatVal index) <- getScalarVar control
let index' = index + step
setScalarVar control (FloatVal index')
if (step >= 0 && index' <= lim) || (step < 0 && index' >= lim) then
continue True
else
resume False
In the expression:
if isNext x || isNextVar control x then
do (FloatVal index) <- getScalarVar control
let index' = ...
setScalarVar control (FloatVal index')
....
else
passOn True
|
354 | (FloatVal index) <- getScalarVar control
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

[16 of 18] Compiling Language.VintageBasic.Parser ( src/Language/VintageBasic/Parser.hs, dist/build/vintbas/vintbas-tmp/Language/VintageBasic/Parser.o )

$ cabal --version
cabal-install version 2.4.0.0
compiled using version 2.4.0.1 of the Cabal library

TAB count is not reset after INPUT statement

Description: A program displays some data in columns and then asks for information at the end of the line with an INPUT statement. The user submits the input by hitting RETURN. This sends the cursor back to column 1 on the screen, but the TAB count is not reset.
Example:

10 REM TAB count is not reset after INPUT statement
20 REM Program asks for input at end of line of information
30 PRINT TAB(10);"TEN";TAB(20);"XX";TAB(30);30;TAB(40);"TYPE HERE:";TAB(60);
40 INPUT A$
50 GOTO 30

This issue is found in line 112 in the Defuse game in More BASIC Computer Games - See Atariarchives.org.

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.