-
Notifications
You must be signed in to change notification settings - Fork 4
Desktop Forth system requirements
ruv edited this page Mar 5, 2020
·
4 revisions
Some requirements for a desktop Forth system for better usability.
-
Support batch processing
- batch mode, non interactive mode
-
Don't output anything (except the error messages) in batch mode.
- It is better to output the error messages into STDERR in this case.
-
Be quiet when any command line options are specified.
- Don't print a name, version, motd or something alike.
-
Proper working when STDIN is a pipe (not a keyboard).
- Example:
echo 2 3 + . | forth
should print 5 and return control to the host system.
- Example:
-
The default exception handler should terminate the process if an exception occurs on processing the command line options.
-
Conventional command line options
- the file names in the command line should be included one after another in the given order
-
-e "source code"
evaluate the given code and proceed -
--help
print short manual and return -
--version
print version and return