Package org.clafer.cli


package org.clafer.cli
This package provides the command-line interface of clafersg, the Clafer solution generator (formerly chocosolver): the main class of clafersg.jar.

It reads a model (.cfr, explicit or not, or a .js file), compiling a .cfr model with the Java frontend or, for a [choco| |] escape or with --haskell-frontend, with the Clafer compiler. A static model is solved with Choco, in batch mode, with validation (-v) or in the REPL (--repl); a temporal model is solved with Alloy 6, as claferIG solves it.

  • Class
    Description
    Reads a .cfr model that is not an explicit model: with the Java frontend (ToIr, then ToAst) in this JVM, or, when the Java frontend cannot take the model, with the Haskell compiler (clafer -k -m choco), whose .js file is read with Rhino.
    A model that cannot be read.
     
     
    clafersg's REPL for a static model: the Choco backend of the one solution loop (Repl), with clafersg's commands and messages, and the instances as chocosolver prints them.