Uses of Package
org.clafer.frontend
Packages that use org.clafer.frontend
Package
Description
This package provides the Alloy 6 code of a temporal model, as
clafer -m alloy writes it: a port of the Clafer compiler's
AlloyLtl generator, with the mapping of the positions in the Alloy
code back to the model's constraints.This package provides the Alloy backend of the solution loop, for temporal
models: a port of claferIG that runs Alloy 6.2.0 in the same JVM, finds
the traces of a model, reads them from Alloy's XML, and computes unsat
cores and their near-misses.
This package provides the assertions of a model: a boolean expression of the
AST that every instance should satisfy, with where it is in the source model.
This package provides the language for building Clafer AST.
This package provides the command-line interface of clafersg, the Clafer
solution generator (formerly chocosolver): the main class of
clafersg.jar.This package provides the Java frontend of Clafer: a port of the Clafer
compiler that reads
.cfr models without the Haskell compiler.This package provides
clafer-ls, the Clafer language server (LSP),
on Eclipse LSP4J: JSON-RPC over stdin and stdout.This package provides classes for building the objective.
-
Classes in org.clafer.frontend used by org.clafer.alloyClassDescriptionA model: its declarations and constraints in the order they were written, then its objectives and assertions, which the compiler prints at the end.Where a clafer, constraint, assertion or objective is in the source model: from line:column up to, not including, endLine:endColumn.
-
Classes in org.clafer.frontend used by org.clafer.alloy.solveClassDescriptionWhere a clafer, constraint, assertion or objective is in the source model: from line:column up to, not including, endLine:endColumn.
-
Classes in org.clafer.frontend used by org.clafer.assertionClassDescriptionWhere a clafer, constraint, assertion or objective is in the source model: from line:column up to, not including, endLine:endColumn.
-
Classes in org.clafer.frontend used by org.clafer.astClassDescriptionAn error in the source, with where it is.A model: its declarations and constraints in the order they were written, then its objectives and assertions, which the compiler prints at the end.Where a clafer, constraint, assertion or objective is in the source model: from line:column up to, not including, endLine:endColumn.
-
Classes in org.clafer.frontend used by org.clafer.cliClassDescriptionThe restrictions of the imports, which only the command line gives, as the web tools give them to the compiler:
-
Classes in org.clafer.frontend used by org.clafer.frontendClassDescriptionThe tokens of a model.The tree of a model and its errors.An error in the source, with where it is.A parsed model.The written bound of a top-level abstract clafer, which counts all its instances, rich:
abstract Tools 3..6.An assertion,assert [ exp ].The binary operators, by their syntax.A cardinality,low..high, orlow..*.A constraint,[ exp ].The declarations of a quantifier,[disj] x; y : set.A declaration or constraint of a model or of a clafer.An expression.An initializer, rich:= value, or:= each valueor:= together value, with its clock written out (kbak/clafer-semantics#194).The initializers, by their syntax.A model: its declarations and constraints in the order they were written, then its objectives and assertions, which the compiler prints at the end.A temporal modifier of a clafer, rich.The temporal modifiers, by their keywords.A name as written: of a clafer, a variable, or a type.A node of the tree.An objective,<< max exp >>or<< min exp >>.The options of the first line,//# OPTIONS --explicit, as the compiler writes them.Where a clafer or constraint of the core comes from, as--record-provenancewrites it: the rich construct that a lowering made it from, and the position of that construct, e.g.,// final, model.cfr:56:5.The patterns.The scopes of a pattern.A position in a source file, as in the compiler's messages.The quantifiers.A reference:-> target, a set, or->> target, a bag.The temporal operators of the core.The prefix operators.The tokens with the layout made explicit.The tokens of a source text.The files of a model: the model and the files it imports, transitively, with--import=FILEin their//# OPTIONSlines, as the compiler reads them (Import.readModel): local files and http or https URLs (Http).The restrictions of the imports, which only the command line gives, as the web tools give them to the compiler:A line in a file.The options of a model file that the frontend uses, from its first line,//# OPTIONS ..., as the compiler reads them (Import.fileOptions):--core,--tl,--minint,--maxint,--decimal-digits,--ssand--import.What the names of a model refer to, for the language server: the clafers, whoseSymbols.ClaferSymbol.nameSpan()is where each is declared, and the clafer that each written name refers to, by the span of the name.The scopes that chocosolver solves an explicit model with, as the compiler writes them to the explicit model's scope file (clafer -m clafer --meta-data,model.des.cfr-scope).Where a clafer, constraint, assertion or objective is in the source model: from line:column up to, not including, endLine:endColumn.A clafer, or an enumeration or one of its literals.A group card.An interval of a card or a group card.The reference of a clafer.The modifiers of a reference:finalref,finaltarget, andfinal, which is both.The symbols of a model.The binary operators, with their symbols and levels.A cardinality:?,+,*, a number or an interval.The transition of a clafer,--> e.The declaration of a quantifier,x; y : e.A declaration at the top level.An element: a clafer, a use of a clafer, a constraint, an objective or an assertion.The elements of a clafer, in braces or indented.An expression.A group cardinality: a keyword or an interval.How an objective is written.A name as written, e.g., a clafer's name or a local variable.An initializer,= eor:= e.How an initializer is written.The kinds of literals.A model: its declarations in the order they were written.A path of names,a\b.A node of the tree.The behavioral patterns.The scope of a pattern:before e,after e,between e and e,after e until e.The quantifiers.A reference,-> eto a set or->> eto a bag.The scopes of a pattern.The super clafer,: e.A temporal modifier of a clafer.The temporal modifiers.A transition arrow:-->,-->>(synchronous), or with a guard,-[ g ]->and-[ g ]->>.The prefix operators, with their symbols, levels and the levels of their operands.A token: its kind, its text exactly as written, and where it is.The kinds of tokens. -
Classes in org.clafer.frontend used by org.clafer.lspClassDescriptionThe tree of a model and its errors.Where a clafer, constraint, assertion or objective is in the source model: from line:column up to, not including, endLine:endColumn.
-
Classes in org.clafer.frontend used by org.clafer.objectiveClassDescriptionWhere a clafer, constraint, assertion or objective is in the source model: from line:column up to, not including, endLine:endColumn.