Expangle
Expangle is a generic quotation expander. It expands quotations written <:qname<...>>
in any kind of text, where qname
refers to a particular expander.
Documentation
Options:
-debug <n> Set the debug level to <n>
-h | -help Print this message and exit
-nonest Forbid nested quotations
-v | -version Print version and exit
-o <file> Send output to <file> instead of stdout
-i <file> Receive input from <file> instead of stdin
-exp predef <name> <arg> ... --
Activate the predefined expander <name> with arguments <args> ...
Note that "--" signals the end of the expander's arguments
-exp shell [-trim] <name> <command>
Activate the expander called <name> defined as the output of the shell command <command>
-trim discards leading and trailing spaces from the command output
-exp module <file.cmo> <arg> ... --
Activate an expander provided by module <file.cmo> with arguments <arg> ...
Note that "--" signals the end of the expander's arguments
Installation
Expangle is written in Objective Caml and the OCaml compiler ocamlopt
must be available for a successful installation.
In a Unix environment, from the expangle distribution main directory, edit the file Makefile
for fixing the installation directory (variable BINDIR
).
Then, simply issue:
make
sudo make install
License
Expangle is free software. Its license is the GPL, version 2.
Downloading
Expangle is available as a gzipped tar archive here.