1 package org.simantics.scl.compiler.elaboration.chr.ast;
3 import java.util.ArrayList;
5 import org.simantics.scl.compiler.elaboration.chr.CHRLiteral;
6 import org.simantics.scl.compiler.elaboration.chr.relations.SpecialCHRRelation;
7 import org.simantics.scl.compiler.elaboration.contexts.TranslationContext;
8 import org.simantics.scl.compiler.elaboration.expressions.Expression;
10 public class CHRAstEquals extends CHRAstQuery {
11 public Expression left;
12 public Expression right;
14 public CHRAstEquals(Expression left, Expression right) {
20 public void accept(CHRAstQueryVisitor visitor) {
25 protected void translate(TranslationContext context, boolean isHead, ArrayList<CHRLiteral> literals) {
26 literals.add(new CHRLiteral(location, SpecialCHRRelation.EQUALS,
27 new Expression[] { left, right }, false, false));