Skip to content
Snippets Groups Projects

Scheduler additions

Merged Aaron Councilman requested to merge scheduler-additions into main
5 files
+ 119
37
Compare changes
  • Side-by-side
  • Inline
Files
5
@@ -551,7 +551,14 @@ fn compile_expr(
}
Ok(ExprResult::Expr(ir::ScheduleExp::Record { fields: result }))
}
parser::Expr::SetOp {
parser::Expr::UnaryOp { span: _, op, exp } => {
let exp = compile_exp_as_expr(*exp, lexer, macrostab, macros)?;
Ok(ExprResult::Expr(ir::ScheduleExp::UnaryOp {
op,
exp: Box::new(exp),
}))
}
parser::Expr::BinaryOp {
span: _,
op,
lhs,
@@ -559,7 +566,7 @@ fn compile_expr(
} => {
let lhs = compile_exp_as_expr(*lhs, lexer, macrostab, macros)?;
let rhs = compile_exp_as_expr(*rhs, lexer, macrostab, macros)?;
Ok(ExprResult::Expr(ir::ScheduleExp::SetOp {
Ok(ExprResult::Expr(ir::ScheduleExp::BinaryOp {
op,
lhs: Box::new(lhs),
rhs: Box::new(rhs),
Loading