part of shnell – a source to source compiler enhancement tool
© Jens Gustedt, 2019
A toy example that splits all decimal integers into their prime
factors.
This directive spans the whole text that it amends for decimal integers, factors these, and replaces them by the product of the factors.
It uses the Unix™ factor
utility under the hood, which might not be present on all POSIX systems.
Coding and configuration
The following code is needed to enable the sh-module framework.SRC="$_" . "${0%%/${0##*/}}/import.sh"
Imports
The following sh
-modules are imported: