import org.simantics.scl.compiler.top.SCLCompilerConfiguration;
import org.simantics.scl.compiler.types.Types;
import org.simantics.scl.compiler.types.exceptions.MatchException;
-
-import gnu.trove.map.hash.TObjectIntHashMap;
-import gnu.trove.set.hash.TIntHashSet;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
public class ETransformation extends SimplifiableExpression {
+
+ private static final Logger LOGGER = LoggerFactory.getLogger(ETransformation.class);
+
public static final Object TRANSFORMATION_RULES_TYPECHECKED = new Object();
public final String name;
this.seed = seed;
}
- @Override
- public void collectVars(TObjectIntHashMap<Variable> allVars,
- TIntHashSet vars) {
- seed.collectVars(allVars, vars);
- }
-
@Override
protected void updateType() throws MatchException {
setType(Types.UNIT);
Expression expression = tb.compileRules();
if(SCLCompilerConfiguration.SHOW_COMPILED_RULES)
- System.out.println(expression);
+ LOGGER.info("{}", expression);
return expression;
}