File tree Expand file tree Collapse file tree 1 file changed +30
-1
lines changed Expand file tree Collapse file tree 1 file changed +30
-1
lines changed Original file line number Diff line number Diff line change @@ -591,7 +591,36 @@ lbForth is a minimal Forth implementation but still contains a fair amount of
591591built in words. It is currently not included on the disks for the C64, VIC20
592592or BBC Micro due to lack of disk space.
593593
594- The original source code is available [here](https://gist.github.com/lbruder/10007431)
594+ The original source code is available [here](https://gist.github.com/lbruder/10007431).
595+
596+ It has been extended with the possibility to load a script from file at
597+ startup if the filename is given as a command line argument, and a small
598+ example file (`TRIANGLE.FRT`) is included:
599+ ```
600+ : STAR 42 EMIT ;
601+ : STARS 0 DO STAR LOOP ;
602+ : TRIANGLE 1 + 1 DO I STARS CR LOOP ;
603+ CR 10 TRIANGLE CR
604+ ```
605+ When run from the command line it produces the following output:
606+ ```
607+ A> LBFORTH TRIANGLE.FRT
608+ lbForth for CP/M-65. Use BYE to exit.
609+
610+ *
611+ **
612+ ***
613+ ****
614+ *****
615+ ******
616+ *******
617+ ********
618+ *********
619+ **********
620+
621+ END OF FILE
622+ OK
623+ ```
595624
596625### Utilities
597626
You can’t perform that action at this time.
0 commit comments