part of shnell – a source to source compiler enhancement tool
© Jens Gustedt, 2019
Implement a pragma dialect
This expects arguments in the form
Without special characters, and where the “:” character separates the lists for amendments and insertions.
This replaces all occurrences of
or
by
or
Defaults
If =
and VALUEx
are omitted, VALUEx
defaults to AMENDx
. If =
and VALEURx
are omitted, VALEURx
defaults to INSERTx
.
If the VALUEx
or VALEURx
part of a pair is omitted, but an =
sign is still present, AMENDx
or INSERTx
is disabled for this dialect.
In particular, amend=
will switch off all other directives for amendments, and insert=
will do the same for insertions.
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: