Open ojwb opened 4 years ago
Love it! We can even suggest a "quick fix" for some of these. Thanks for the suggestion!
I noticed the list of operators actually currently includes <<
and >>
(which are supported by BASIC V on RISC OS, but not BASIC II), and also ==
and !=
(which I don't think any BBC BASIC has). I guess just removing these probably makes no difference though, since they're composed of characters which are all valid operators.
Also it has {
and }
as @brackets
(https://github.com/mattgodbolt/owlet-editor/blob/main/src/bbcbasic.js#L64), but I don't think they have any special meaning in BBC BASIC.
It would be helpful to people less familiar with BBC BASIC if invalid operators were highlighted in red like many other invalid cases are - especially for cases which are valid in other BASIC dialects and/or other languages. E.g.:
Some of these even work in later BBC BASIC versions.
(The "backwards"
=>
, etc are supported by e.g. Apple II BASIC)