Clafer Compiler Command Line Arguments
Back to Clafer Tools
The following model describes the command line arguments of the Clafer compiler and dependencies among them.
Some clafers for argument modeling. These types are needed to distinguish arguments and their values from any other clafers used for grouping etc.:
Actual model of the dependencies among the arguments as implemented in Clafer v0.4.2.
Here are a few examples of using the arguments for different kinds of outputs:
- produce Alloy code (default mode)
Command line: clafer <input cfr file>
.
- produce default Alloy code and validate the output with the Alloy compiler, which will produce parse and type errors that may indicate bugs in the Clafer compiler.
Command line:
clafer --validate -tooldir="~/clafer-tools-0.4.2/tools" <input cfr file>
.
- produce Alloy 4.2 compliant code but keep uninstantiated abstract clafers and flatten the inheritance for performance in reasoning
Command line:
clafer -m=alloy --keep-unused --flatten-inheritance <input cfr file>
.
- produce html rendering of the model for inclusion in the wiki page. This is used by the ClaferWiki.
the option keep_unused
is also used.
Command line: clafer -m=html <input cfr file>
.
- produce a complete html rendering which includes CSS and inserts
graph and statistics in place of the
#GRAPH
and#STATS
compiler directives.
Command line:
clafer -m=html --self-contained --add-graph --add-comments <input cfr file>
.
- produce a graph description in DOT (GraphViz) language for a rendering of the model in the Common Variability Language (CVL) notation for variability abstraction.
Options flatten_inheritance
and keep_unused
are also used by default in this mode.
Command line:
clafer -m=cvlGraph <input cfr file>
.