Comments (4)
In QB64, we have QBasic/QuickBASIC 4.5 as a goal for compatibility. Eventual retrocompatibility was indirectly implemented because of them being a superset of GWBASIC (namely the syntax for the OPEN command for one). I know Freebasic has a #lang switch right?
from wwwbasic.
The original look of the output screens indicated an earlier version of BASIC as target, but since we're aiming at Nibbles and Gorillas, I understand QBasic is going to be the broader goal, so maybe it'd be the case to indicate when an older command set is to be supported instead.
from wwwbasic.
Why not have a type of preprocessor command that allows us to indicate which version of BASIC the code is targeting? This would allow us to implement certain PEEK/POKE instructions based on the target.
10 TARGET=QB45
10 TARGET=PCDOS
10 TARGET=TRS80III <--- where I started
from wwwbasic.
I imagine we'll likely want a few different ways to specify dialect:
- Some inline way. This probably can use basic's "pragma", OPTION, e.g.:
- OPTION DIALECT TRS80
- Some way to specify on a script tag:
- <script .. dialect="TRS80"...>
- Some way to specify programmatically:
- basic.QBasic / or basic.Basic(... {bag of options} ...)
- Short cuts could be fine, but likely in the limit we'll want a bag of several things.
Theoretically QBasic is a superset of GWBASIC which is a superset of BASICA, but that's not entirely true as each has a definition defined by a single implementation and there are quirks + intentional breaks in compat.
FreeBasic I believe mushes together things by default, but has options for specific dialects.
Probably some thought needs to go into:
- What are the dialects and how "complete" should they be (in the limit that might make them quite complex to be bug for bug / limitation compatible). E.g. do we really want Applesoft's identifier limits?
- Which can be used together. There are some where the grammars clash.
from wwwbasic.
Related Issues (20)
- Implement ON x GOTO a,b,c,d HOT 5
- Add a copyright header check. HOT 1
- Some issues found by static analyzer HOT 3
- Implement error on out of bounds array access.
- Implement PLAY and SOUND HOT 7
- Better error handling for FUNCTION/SUB/GOSUB/RETURN clashes + underflow. HOT 3
- ON GOSUB may be slightly off. HOT 3
- Handle touch screen input better.
- Some Guidance on The Why? HOT 3
- Support GORILLAS.BAS HOT 2
- Emulate EGA/VGA PALETTE + CGA Background HOT 1
- Support the ANY type properly HOT 1
- Support EGA/VGA Text 8x14 / 9x16
- Set the input focus in the browser HOT 1
- Add waffle.io project management
- Changing tabs flips wwwBasic window upside down HOT 1
- Basic Anywhere Machine
- A suggested bug-fix for the "swap" statement HOT 1
- BASIC Anywhere Machine: enhancements to internal copy of wwwBASIC
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wwwbasic.