How is forth working with files, programs or scripts on the Parallax Propeller P2
Ive been watching a load of videos about forth and kind of getting lost in the subject of most videos being about stacks and math; and few I find about actually doing anything more than flashing some Leds from a single line of code or running single line commands that do other things. I get the idea that it does what you want it to do along the lines of configuring a PLC to automate some tasks; and words are like functions but how about something more normal like an application that is saved as a file on an SD card that gets ran.
This got me wondering how forth uses external programs. Lets say we have a program that is saved as .fth
I know that you can create functions and make them part of the running forth which would be lost at the next power cycle but lets say I want a bunch of applications/functions or words that arnt saved into the tachoz system on flash but instead are files on some media.
How do you go about loading a file and running it. Like one that sends "hello world" to the terminal or one that does a bunch of tasks to be more than one line of code.
Also, is it possible to store such applications on the Flash to be called up by Tachoz
While I am writing, I am thinking about the concept to not tinker with the running Tachoz itself but create external forth scripts that are loaded and ran by the Tachoz, in the usual file system way like we would with Basic
Last one, of course if all the files are stored on lets say SD, and the P2 was power cycled, what would run the first application, basically it needs some user intervention to get rolling, does Tachoz look for some specific file/word on the lines of Autoexec.bat
This subject is likely very useful for others also looking at forth and Tachoz.
Anyone can enlighten this a little bit.