Vintage BASIC Interpreter
lylek / vintage-basic Goto Github PK
View Code? Open in Web Editor NEWVintage BASIC Interpreter
License: BSD 3-Clause "New" or "Revised" License
Vintage BASIC Interpreter
License: BSD 3-Clause "New" or "Revised" License
$ 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
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.