Is there a very simple interpreter for BASIC for BASH?
Is there a very simple interpreter for BASIC for BASH?
It would appear that that are three: bwbasic, sdlbasic and yabasic
[...]
sudo apt search "basic interpreter" | less
to find these Raspbian packages.
On 24-03-2021 12:01, Martin Gregorie wrote:
It would appear that that are three: bwbasic, sdlbasic and yabasic
[...]
sudo apt search "basic interpreter" | less to find these Raspbian
packages.
Won't you only find packages that have the exact description "basic interpreter" that way, or is the search cleverer than that?
- Also graphical, harking back to the inspiration for the Raspberry Pi: https://www.bbcbasic.co.uk/bbcsdl/
Is there a very simple interpreter for BASIC for BASH?
Thanx!
FW
Is there a very simple interpreter for BASIC for BASH?
On 3/24/21 3:43 AM, F. W. wrote:
Is there a very simple interpreter for BASIC for BASH?
Thanx!
FW
https://www.thefreecountry.com/compilers/basic.shtml
will show you. There is also opencomal which is a basic like language
with more structure.
On 24/03/2021 09:43, F. W. wrote:
Is there a very simple interpreter for BASIC for BASH?
If you are looking for an interactive interpreter as an alternative to a
bash shell, and I would recommend iPython rather than a BASIC variant.
Python is far more powerful language with a vast range of library
modules, and iPython allows you to use all of that interactively.
On 24/03/2021 20:45, druck wrote:
On 24/03/2021 09:43, F. W. wrote:
Is there a very simple interpreter for BASIC for BASH?
If you are looking for an interactive interpreter as an alternative to
a bash shell, and I would recommend iPython rather than a BASIC
variant. Python is far more powerful language with a vast range of
library modules, and iPython allows you to use all of that interactively.
I'd suggest PowerShell ...
On 25-03-2021 11:47, Adrian Caspersz wrote:
On 24/03/2021 20:45, druck wrote:
On 24/03/2021 09:43, F. W. wrote:
Is there a very simple interpreter for BASIC for BASH?
If you are looking for an interactive interpreter as an alternative
to a bash shell, and I would recommend iPython rather than a BASIC
variant. Python is far more powerful language with a vast range of
library modules, and iPython allows you to use all of that
interactively.
I'd suggest PowerShell ...
On the Raspberry Pi?! Because we're in comp.sys.raspberry-pi here.
On 25-03-2021 11:47, Adrian Caspersz wrote:
On the Raspberry Pi?! Because we're in comp.sys.raspberry-pi here.
On 25/03/2021 11:34, A. Dumas wrote:
On 25-03-2021 11:47, Adrian Caspersz wrote:
On 24/03/2021 20:45, druck wrote:
On 24/03/2021 09:43, F. W. wrote:
Is there a very simple interpreter for BASIC for BASH?
If you are looking for an interactive interpreter as an alternative
to a bash shell, and I would recommend iPython rather than a BASIC
variant. Python is far more powerful language with a vast range of
library modules, and iPython allows you to use all of that
interactively.
I'd suggest PowerShell ...
On the Raspberry Pi?! Because we're in comp.sys.raspberry-pi here.
Yup.
A. Dumas <alexandre@dumas.fr.invalid> wrote:
- Gordon's RTB seems to have vanished from the repos but can be
downloaded here:
https://projects.drogon.net/rtb/rtb-download-and-install/ I just tried
it and it still works, and it does GPIO, but unfortunately for OP it
requires a graphical screen. (And to install libsdl-sound1.2 first, even
if you don't use sound.)
It should work on the console without any GUI running.
Try running it with the -D flag:
rtb -D
then looking at the list of modes it prints, then you can pick the mode/resolution with
rtb -m X
where X is the mode number listed from the -D command. Mode 0 is usually
the highest resolution one which is the default if you don't use the
-m flag.
RTB (and wiringPi) are sort of on holiday right now - I've had some health issues in the past year or 2 and am now in the middle of moving house,
so once the dust has settled I'll be doing more with them.
On Thu, 25 Mar 2021 12:34:50 +0100, "A. Dumas" <alexandre@dumas.fr.invalid> declaimed the following:
On 25-03-2021 11:47, Adrian Caspersz wrote:
On the Raspberry Pi?! Because we're in comp.sys.raspberry-pi here.
MicroSloth made it somewhat open-source and have ports for four architectures/OS... Using the port of .NET runtime...
https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell?view=powershell-7.1
https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-core-on-linux?view=powershell-7.1#raspbian
On 24-03-2021 12:01, Martin Gregorie wrote:
It would appear that that are three: bwbasic, sdlbasic and yabasic
[...]
sudo apt search "basic interpreter" | less
to find these Raspbian packages.
Won't you only find packages that have the exact description "basic >interpreter" that way, or is the search cleverer than that?
Two Raspberry Pi related options:
- Gordon's RTB seems to have vanished from the repos but can be
downloaded here:
https://projects.drogon.net/rtb/rtb-download-and-install/ I just tried
it and it still works, and it does GPIO, but unfortunately for OP it
requires a graphical screen. (And to install libsdl-sound1.2 first, even
if you don't use sound.)
On 25-03-2021 17:07, Dennis Lee Bieber wrote:
On Thu, 25 Mar 2021 12:34:50 +0100, "A. Dumas" <alexandre@dumas.fr.invalid> >> declaimed the following:
On 25-03-2021 11:47, Adrian Caspersz wrote:
On the Raspberry Pi?! Because we're in comp.sys.raspberry-pi here.
MicroSloth made it somewhat open-source and have ports for four
architectures/OS... Using the port of .NET runtime...
https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell?view=powershell-7.1
https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-core-on-linux?view=powershell-7.1#raspbian
I know... but........ that seems great if you do things with PowerShell
on Windows, not so much as a deliberate/independent choice on the Pi.
On 25/03/2021 11:34, A. Dumas wrote:
On 25-03-2021 11:47, Adrian Caspersz wrote:
On 24/03/2021 20:45, druck wrote:
On 24/03/2021 09:43, F. W. wrote:
Is there a very simple interpreter for BASIC for BASH?
If you are looking for an interactive interpreter as an
alternative to a bash shell, and I would recommend iPython rather
than a BASIC variant. Python is far more powerful language with a
vast range of library modules, and iPython allows you to use all
of that interactively.
I'd suggest PowerShell ...
On the Raspberry Pi?! Because we're in comp.sys.raspberry-pi here.
Yup.
On 25-03-2021 17:22, Gordon Henderson wrote:
A. Dumas <alexandre@dumas.fr.invalid> wrote:
- Gordon's RTB seems to have vanished from the repos but can be
downloaded here:
https://projects.drogon.net/rtb/rtb-download-and-install/ I just tried
it and it still works, and it does GPIO, but unfortunately for OP it
requires a graphical screen. (And to install libsdl-sound1.2 first, even >>> if you don't use sound.)
It should work on the console without any GUI running.
Try running it with the -D flag:
rtb -D
then looking at the list of modes it prints, then you can pick the mode/resolution with
rtb -m X
where X is the mode number listed from the -D command. Mode 0 is usually
the highest resolution one which is the default if you don't use the
-m flag.
Right! Thanks. I looked at the documentation and did try the -D flag but
I was another step removed, over ssh, and it just would not start. I
have not tried forwarding the X-server, that seemed a little over the
top for OP who intended it as a bash tool.
On Thu, 25 Mar 2021 12:42:24 +0000
Adrian Caspersz <email@here.invalid> wrote:
On 25/03/2021 11:34, A. Dumas wrote:
On 25-03-2021 11:47, Adrian Caspersz wrote:
On 24/03/2021 20:45, druck wrote:
On 24/03/2021 09:43, F. W. wrote:
Is there a very simple interpreter for BASIC for BASH?
If you are looking for an interactive interpreter as an
alternative to a bash shell, and I would recommend iPython rather
than a BASIC variant. Python is far more powerful language with a
vast range of library modules, and iPython allows you to use all
of that interactively.
I'd suggest PowerShell ...
On the Raspberry Pi?! Because we're in comp.sys.raspberry-pi here.
Yup.
Why?
The more sophisticated Windows users think PowerShell is wonderful
because it give them access to a lot of stuff the GUI doesn't touch,
chap wants to get back to BASICs. Why, we don't know.
dabble with VBA in Access, and even more occasionally in Excel, but I
have no other use for any form of BASIC.
The Raspberry Pi 400, to me is just screaming to be booted up with a BBC BASIC prompt without a GUI. Just switch it on, and start coding like
it's 1984... er, 1981.
The Raspberry Pi 400, to me is just screaming to be booted up with a BBC BASIC prompt without a GUI. Just switch it on, and start coding like
it's 1984... er, 1981.
Fuck to that. There, I think that gem of wit and extreme profundity settles >the matter.
The Raspberry Pi 400, to me is just screaming to be booted up with a BBC BASIC prompt without a GUI. Just switch it on, and start coding like
it's 1984... er, 1981.
On Fri, 26 Mar 2021 10:27:13 +0000
Adrian Caspersz <email@here.invalid> wrote:
The Raspberry Pi 400, to me is just screaming to be booted up with a BBC
BASIC prompt without a GUI. Just switch it on, and start coding like
it's 1984... er, 1981.
If you had a BBC Micro in 1981 I'm impressed, there were a handful
of model As shipped in December but even at Torch we didn't get model B boards until well into 1982.
On 25 Mar 2021 at 16:46:06 GMT, "A. Dumas" <alexandre@dumas.fr.invalid> wrote:
On 25-03-2021 17:07, Dennis Lee Bieber wrote:
On Thu, 25 Mar 2021 12:34:50 +0100, "A. Dumas" <alexandre@dumas.fr.invalid>
declaimed the following:
On 25-03-2021 11:47, Adrian Caspersz wrote:
On the Raspberry Pi?! Because we're in comp.sys.raspberry-pi here.
MicroSloth made it somewhat open-source and have ports for four
architectures/OS... Using the port of .NET runtime...
https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell?view=powershell-7.1
https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-core-on-linux?view=powershell-7.1#raspbian
I know... but........ that seems great if you do things with PowerShell
on Windows, not so much as a deliberate/independent choice on the Pi.
Why would you fart about with that rather than using one of the standard shells such as zsh? Not that I'd ever dream of writing a script with a shell scripting language.
Has anyone seen my straight jacket?
The Raspberry Pi 400, to me is just screaming to be booted up with a BBC BASIC prompt without a GUI. Just switch it on, and start coding like
it's 1984... er, 1981.
On Fri, 26 Mar 2021 10:27:13 +0000
Adrian Caspersz <email@here.invalid> wrote:
The Raspberry Pi 400, to me is just screaming to be booted up with a
BBC BASIC prompt without a GUI. Just switch it on, and start coding
like it's 1984... er, 1981.
If you had a BBC Micro in 1981 I'm impressed, there were a handful
of model As shipped in December but even at Torch we didn't get model
B boards until well into 1982.
On Thu, 25 Mar 2021 16:58:26 +0000, TimS wrote:
On 25 Mar 2021 at 16:46:06 GMT, "A. Dumas" <alexandre@dumas.fr.invalid>
wrote:
On 25-03-2021 17:07, Dennis Lee Bieber wrote:
On Thu, 25 Mar 2021 12:34:50 +0100, "A. Dumas" <alexandre@dumas.fr.invalid>
declaimed the following:
On 25-03-2021 11:47, Adrian Caspersz wrote:
On the Raspberry Pi?! Because we're in comp.sys.raspberry-pi here.
MicroSloth made it somewhat open-source and have ports for four
architectures/OS... Using the port of .NET runtime...
https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell?view=powershell-7.1
https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-core-on-linux?view=powershell-7.1#raspbian
I know... but........ that seems great if you do things with PowerShell >>> on Windows, not so much as a deliberate/independent choice on the Pi.
Why would you fart about with that rather than using one of the standard
shells such as zsh? Not that I'd ever dream of writing a script with a shell
scripting language.
*Looks at his own thousand line bourne shell scripts...
On 26 Mar 2021 at 14:53:15 GMT, Joe Beanfish <joebeanfish@nospam.duh> wrote:
*Looks at his own thousand line bourne shell scripts...
Perl or TECO would be clearer.
Is there a very simple interpreter for BASIC for BASH?
Is there a very simple interpreter for BASIC for BASH?Given the paucity of useful answers, here are the ones I use:
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 371 |
Nodes: | 16 (2 / 14) |
Uptime: | 36:56:27 |
Calls: | 7,932 |
Calls today: | 2 |
Files: | 12,998 |
Messages: | 5,805,537 |