Class ClaferExecutable

java.lang.Object
org.clafer.frontend.ClaferExecutable

public final class ClaferExecutable extends Object
The Clafer compiler, the Haskell clafer, that the Java tools run for what they do not do themselves (clafersg for a model with a [choco| |] escape or with --haskell-frontend, claferc for the modes it forwards):
  • -Dclafer.executable, if it is set;
  • otherwise clafer next to the jar of this class, as in Clafer Tools, where both bundles unpack into one folder with clafersg.jar, claferc.jar and clafer, so that the folder need not be on the PATH;
  • otherwise clafer on the PATH.
  • Method Details

    • find

      public static String find()
      The command that runs the Clafer compiler.