1 package org.simantics.scl.compiler.elaboration.expressions.block;
3 import org.simantics.scl.compiler.elaboration.contexts.EnvironmentalContext;
4 import org.simantics.scl.compiler.elaboration.contexts.TranslationContext;
5 import org.simantics.scl.compiler.elaboration.expressions.Expression;
6 import org.simantics.scl.compiler.elaboration.expressions.list.ListQualifier;
7 import org.simantics.scl.compiler.errors.Locations;
9 public class CHRStatement extends Statement {
11 public ListQualifier[] head;
12 public ListQualifier[] body;
14 public CHRStatement(ListQualifier[] head, ListQualifier[] body) {
20 public Expression toExpression(EnvironmentalContext context, boolean monadic, Expression in) {
21 throw new UnsupportedOperationException();
25 public void setLocationDeep(long loc) {
26 if(location == Locations.NO_LOCATION) {
28 for(ListQualifier lq : head)
29 lq.setLocationDeep(loc);
30 for(ListQualifier lq : body)
31 lq.setLocationDeep(loc);
36 public void resolvePattern(TranslationContext context) {
37 throw new UnsupportedOperationException();
41 public boolean mayBeRecursive() {
46 public void accept(StatementVisitor visitor) {
51 public StatementGroup getStatementGroup() {
52 return StatementGroup.CHR;