I am New and I need Help

Started by fozba, December 20, 2021, 16:24:09

Previous topic - Next topic

fozba

Dear forum members,

First, I hope this is the right place for posting such a question. I have downloaded Smallbasic for Android to play with recursive functions to generate some fractals during my free time. I have also downloaded the program for Windows as well. However, I have several questions:
•First, is there a way to compile & run those scripts on Windows without using Sbasic editor? Don't get me wrong, the person who created it did a fantastic job. But I would prefer to write code in Atom/Vim and then just compile & run it using console (I have WSL if that helps somehow) just as I do with the C code.
•Second, the reason for the question above is that I want to code some of the stuff on PC and then put it on my phone. I have downloaded some beautiful basic code from Wiki, but I don't know how to navigate to that folder in phone via the SmallBASIC app. I tried to find the main directory of the app and then to put the code in that directory, but again, no chance. It is like the app has a hidden directory. I am not very familiar with Android/Linux, so I need your assistance. Basically, I want to be able to:
-Write code in atom and run it with just a terminal
-On phone, I want to be able to run the basic codes that I have downloaded from the internet.

Have a nice day!

chrisws

I will try to answer your questions. Hope this helps...

> I would prefer to write code in Atom/Vim and then just compile & run it using console (I have WSL if that helps somehow) just as I do with the C code.
- There are native SB binaries for Windows so no need to use WSL.
- You can certainly work this way. The limitation being there are probably no atom/vim etc plugins to support SmallBASIC directly.
- The SB release zip for Windows contains a few different incarnations. All versions support the '--help' command switch. For sbasicg you probably want the -r option to run a program then exit.

> Second, the reason for the question above is that I want to code some of the stuff on PC and then put it on my phone.
- The android page lists a few options for doing this: https://smallbasic.github.io/pages/android.html
- SmallBASIC for android targets fairly recent android versions. This entails some limitations google have made around what folders app may access.

fozba

Quote from: chrisws on December 21, 2021, 05:48:47
I will try to answer your questions. Hope this helps...

> I would prefer to write code in Atom/Vim and then just compile & run it using console (I have WSL if that helps somehow) just as I do with the C code.
- There are native SB binaries for Windows so no need to use WSL.
- You can certainly work this way. The limitation being there are probably no atom/vim etc plugins to support SmallBASIC directly.
- The SB release zip for Windows contains a few different incarnations. All versions support the '--help' command switch. For sbasicg you probably want the -r option to run a program then exit.

> Second, the reason for the question above is that I want to code some of the stuff on PC and then put it on my phone.
- The android page lists a few options for doing this: https://smallbasic.github.io/pages/android.html
- SmallBASIC for android targets fairly recent android versions. This entails some limitations google have made around what folders app may access.

Thanks you for your reply Chris. The thing is, on my phone I can't see neither a directory nor "Go Up" options. I am using Android 8.0.0. I also can't see the main directory of apps from default File Explorer of the phone. Any advices?

Baggey

Quote from: fozba on December 21, 2021, 18:14:00
Quote from: chrisws on December 21, 2021, 05:48:47
I will try to answer your questions. Hope this helps...

> I would prefer to write code in Atom/Vim and then just compile & run it using console (I have WSL if that helps somehow) just as I do with the C code.
- There are native SB binaries for Windows so no need to use WSL.
- You can certainly work this way. The limitation being there are probably no atom/vim etc plugins to support SmallBASIC directly.
- The SB release zip for Windows contains a few different incarnations. All versions support the '--help' command switch. For sbasicg you probably want the -r option to run a program then exit.

> Second, the reason for the question above is that I want to code some of the stuff on PC and then put it on my phone.
- The android page lists a few options for doing this: https://smallbasic.github.io/pages/android.html
- SmallBASIC for android targets fairly recent android versions. This entails some limitations google have made around what folders app may access.

Thanks you for your reply Chris. The thing is, on my phone I can't see neither a directory nor "Go Up" options. I am using Android 8.0.0. I also can't see the main directory of apps from default File Explorer of the phone. Any advices?

Is Vim a sort of Veralog Language?

Baggey
Running a PC that just Aint fast enough!? i7 Quad core 16GB ram 1TB SSD and NVIDIA Quadro K620 . DID Technology stop! Or have we been assimulated!

ZX Spectrum 48k, C64, ORIC Atmos 48K, Enterprise 128K, The SID chip. Im Misunderstood!

chrisws

Quote from: fozba on December 21, 2021, 18:14:00
Quote from: chrisws on December 21, 2021, 05:48:47
I will try to answer your questions. Hope this helps...

> I would prefer to write code in Atom/Vim and then just compile & run it using console (I have WSL if that helps somehow) just as I do with the C code.
- There are native SB binaries for Windows so no need to use WSL.
- You can certainly work this way. The limitation being there are probably no atom/vim etc plugins to support SmallBASIC directly.
- The SB release zip for Windows contains a few different incarnations. All versions support the '--help' command switch. For sbasicg you probably want the -r option to run a program then exit.

> Second, the reason for the question above is that I want to code some of the stuff on PC and then put it on my phone.
- The android page lists a few options for doing this: https://smallbasic.github.io/pages/android.html
- SmallBASIC for android targets fairly recent android versions. This entails some limitations google have made around what folders app may access.

Thanks you for your reply Chris. The thing is, on my phone I can't see neither a directory nor "Go Up" options. I am using Android 8.0.0. I also can't see the main directory of apps from default File Explorer of the phone. Any advices?

The folder you are looking for is something like:

Android/data/net.sourceforge.smallbasic/files/

This should appear under the virtual drive that appears in Windows when you connect your mobile using a USB cable.