Skip to content

Commit

Permalink
revert query hacks
Browse files Browse the repository at this point in the history
  • Loading branch information
oflatt committed Jul 27, 2023
1 parent 746e355 commit 7dd2d3c
Show file tree
Hide file tree
Showing 6 changed files with 71 additions and 358 deletions.
7 changes: 3 additions & 4 deletions src/ast/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -953,8 +953,7 @@ impl NormRule {
}

pub fn resugar_actions(&self, subst: &mut HashMap<Symbol, Expr>) -> Vec<Action> {
// TODO doesn't work because re-ordering actions can be bad
/*let mut used = HashSet::<Symbol>::default();
let mut used = HashSet::<Symbol>::default();
let mut head = Vec::<Action>::default();
for a in &self.head {
match a {
Expand Down Expand Up @@ -1046,8 +1045,8 @@ impl NormRule {
Expr::Call(..) => head.push(Action::Expr(expr.clone())),
};
}
}*/
self.head.iter().map(|a| a.to_action()).collect()
}
head
}

pub fn resugar(&self) -> Rule {
Expand Down
Loading

0 comments on commit 7dd2d3c

Please sign in to comment.