Pat pattern = children.get(0).toPattern();
Expression expression = children.get(1).toExpression();
return new BindStmt(location, pattern, expression);
} else if ("ExprStmt".equals(name)) {
Expression expression = children.get(0).toExpression();
return new ExprStmt(location, expression);
} else if ("LetStmt".equals(name)) {
LocalBinds binds = toLocalBinds(children);
return new LetStmt(location, binds);
} else {
// todo: other cases