Class Syntax

java.lang.Object
org.clafer.frontend.Syntax

public final class Syntax extends Object
The syntax tree of a model in the full Clafer language, as written: the tree of the compiler's clafer.cf (AbsClafer), with a span for each node. ClaferParser builds it, and SyntaxPrinter prints it as the compiler's printTree does.

The sugar stays as written, e.g., a card ? or the implicit this of a name; the later passes read it from the tree. Where the parser recovered from an error, the tree has what it read around it.

The records are immutable; their lists are unmodifiable copies.