Page 1 of 1

8sh

Posted: Thu Nov 12, 2020 12:29 am
by rje


https://github.com/bobbyjim/x16-8sh




This is the early early stage of an attempted "shell" for the X16.




By definition, a command shell is an interpreter that exposes the system.  In practice, the shell exposes the system through an immediate-mode scripting language, which can also be executed from a file.  The Commodore computers' boot mode is a kind of "BASIC shell".




This shell currently does almost nothing.  I am slowly working out a set of mid-level operations for it, and plan to add the shell's command inventory on top of that. Then, I'll add the ability to run full scripts from file.  Then, I'll add the ability to "pipe" the output of one script into another.  In this manner, I hope to build up a small inventory of useful utilities.




 




 




 




 




  1. Handles integer constants, true, false, and nil.


  2. Handles grouping by parentheses.


  3. Handles math ops + - * / and unary minus.


  4. Handles comparison ops > >= == <= <.


  5. Handles ! (not).




Prints out a "fortune" text when you LOGOUT.




8SH