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.
Handles integer constants, true, false, and nil.
Handles grouping by parentheses.
Handles math ops + - * / and unary minus.
Handles comparison ops > >= == <= <.
Handles ! (not).
Prints out a "fortune" text when you LOGOUT.