What I would love most is, a version of PC basic, of which has all keywords from all, and available by default Such as, have the tandy features work by default, as long as it does not conflict with an identical keyword+attribute syntax of GW basic.
Also, be handy to have the option of changing between simulators with a speicific keyword, to be used either in direct mode, or in a program. Should it be that a feature works best in say Tandy, while another feature or function in the same program may work best in GW basic.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, thanks for the suggestion - what you want isn't really possible though, because if a given word is a keyword it may no longer be used as a variable name. For example, a GW-BASIC program could have a variable NOISE%=1 which is a syntax error on Tandy because it has the NOISE keyword; you can't add something without taking something else away. For the same reason I don't want to add new keywords to the language.
Changing from one syntax to another is not possible without re-starting the emulator, because internal implementations are different for the different versions (keyword table, memory model, sound generator, a few other things). Even if there were a keyword to switch, it would have to perform a hard reset, losing your program and data; it would be impossible to have features from multiple versions in one program.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I may misunderstand what you are looking for, but the Tandy 1000 syntax (i.e. starting with --syntax=tandy) is a superset of GW-BASIC/BASICA; it includes all 'Advanced BASIC' features plus the additional Tandy BASIC features. If you want this syntax to run automatically when you start up, you could set that option in your configuration file, or alternatively add a custom shortcut to your start menu or launcher.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
View and moderate all "[CLOSED] General Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
What I would love most is, a version of PC basic, of which has all keywords from all, and available by default Such as, have the tandy features work by default, as long as it does not conflict with an identical keyword+attribute syntax of GW basic.
Also, be handy to have the option of changing between simulators with a speicific keyword, to be used either in direct mode, or in a program. Should it be that a feature works best in say Tandy, while another feature or function in the same program may work best in GW basic.
Hi, thanks for the suggestion - what you want isn't really possible though, because if a given word is a keyword it may no longer be used as a variable name. For example, a GW-BASIC program could have a variable
NOISE%=1
which is a syntax error on Tandy because it has theNOISE
keyword; you can't add something without taking something else away. For the same reason I don't want to add new keywords to the language.Changing from one syntax to another is not possible without re-starting the emulator, because internal implementations are different for the different versions (keyword table, memory model, sound generator, a few other things). Even if there were a keyword to switch, it would have to perform a hard reset, losing your program and data; it would be impossible to have features from multiple versions in one program.
View and moderate all "[CLOSED] General Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
I always use single or double letter variables almost all of the time. But yes, it is imporant to support all previously written programs.
Would it be possible to have an all inclusive version available?
I may misunderstand what you are looking for, but the Tandy 1000 syntax (i.e. starting with
--syntax=tandy
) is a superset of GW-BASIC/BASICA; it includes all 'Advanced BASIC' features plus the additional Tandy BASIC features. If you want this syntax to run automatically when you start up, you could set that option in your configuration file, or alternatively add a custom shortcut to your start menu or launcher.View and moderate all "[CLOSED] General Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
Am sorry, as I am new to PC-basic, and am learning as to what I need to expect. Thanks for the information.
Also, when I do syntax=tandy, Do I loose any of the GWBASIC features or keywords?
All GWBASIC features and keywords should also work with
syntax=tandy
.View and moderate all "[CLOSED] General Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
Ok, just to be sure, I edit the following line; syntax=advanced ; choices: advanced, pcjr, tandy
To become, syntax=tandy ; choices: advanced, pcjr, tandy
of which I have now done.