Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand simple let #30

Merged
merged 9 commits into from
Sep 11, 2021
Prev Previous commit
Next Next commit
Sprinkle in some todos
  • Loading branch information
certainty committed Sep 11, 2021
commit ff9855bad7fe6daabda8f938300e686d5700ef53
4 changes: 3 additions & 1 deletion src/compiler/frontend/expander.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ impl Expander {
}
}

// TODO: make this behave correctly
fn create_renamer(&mut self) -> Procedure {
Procedure::foreign(foreign::Procedure::new(
"rename",
Expand All @@ -130,9 +131,10 @@ impl Expander {
))
}

// TODO: make this behave correctly
fn create_comparator(&mut self) -> Procedure {
Procedure::foreign(foreign::Procedure::new(
"rename",
"compare",
|values| binary_procedure(&values).map(|(l, r)| Value::Bool(l == r)),
Arity::Exactly(2),
))
Expand Down