@Override
public Expression simplify(SimplificationContext context) {
+ //System.out.println("--------");
context.pushLocation(location);
try {
- CompiledQualifier cq = qualifier.compile(context);
+ CompiledQualifier cq = qualifier.compile(context);
+ /*
+ System.out.println("cq.pattern = " + cq.pattern);
+ System.out.println("cq.value = " + cq.value);
+ System.out.println("head = " + head);
+ */
Expression exp = context.mapList(
context.lambda(cq.pattern, head),
cq.value);
- //System.out.println("simplified: " + exp);
+ //System.out.println("simplified = " + exp);
/*try {
exp.validateType(context.getEnvironment());
} catch (TypeValidationException e) {
@Test public void LambdaMatch() { test(); }
@Test public void Layout1() { test(); }
@Test public void List() { test(); }
+ @Test public void ListComprehensionBug1() { test(); }
@Test public void ListError1() { test(); }
@Test public void ListError2() { test(); }
@Test public void ListFunctions() { test(); }