The command line Rexsel compiler (CRexsel) is in the form of a executable Swift Package that can be built with either the MacOS XCode system or via the Swift build command on Linux (or MacOS). CRexsel is held as a Git repository here here.
The instructions for building CRexsel is a relatively simple task. Once the Package is loaded the following Package contents should be present.
where
crexsel.swift | the main crexsel program. |
xsl2rexsel.rxsl | the uncompiler stylesheet written in Rexsel (see Chapter \ref{sec:uncompilerExample}). |
xsl2rexsel.xsl | the compiled stylesheet for the uncompiler. |
Package.swift | the Package manifest (see Chapter \ref{sec:command}). |
README.md | the Package readme file (not complete at time of writing this). |
build.sh | a simple installer script can be be modified to cater for local conditions. |
This script is designed to build the CRexsel package and compile the uncompiler. It should work on both MacOS and Linux systems, however it may be necessary to be run under superuser manually.
It is designed to run only on Unix based systems at present. After the Package is built the binary application is sent to the "/usr/local/bin" directory.
Before running the installer script ensure that command /usr/bin/xsltproc" app is installed on both (it usually is on most MacOS and Linux systems).
Next the uncompiler script is built from the Rexsel script \xsl2rexsel.rxsl" and sent to xsl2rexsel.xsl" in the same folder (it is already there but this ensures that the latest version is used). Finally this XSL stylesheet is sent to the "/usr/local/bin" directory.