add labels to todos
This commit is contained in:
parent
5ac51f8c5f
commit
faa7a06aa2
|
@ -131,7 +131,7 @@ impl Context {
|
||||||
typ: signal.typ,
|
typ: signal.typ,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Expression::Literal(_) => todo!(),
|
Expression::Literal(_) => todo!("type literal"),
|
||||||
Expression::UnOp(op) => self.type_expression(&op.a)?,
|
Expression::UnOp(op) => self.type_expression(&op.a)?,
|
||||||
Expression::BinOp(op) => {
|
Expression::BinOp(op) => {
|
||||||
let (a, b) = (self.type_expression(&op.a)?, self.type_expression(&op.b)?);
|
let (a, b) = (self.type_expression(&op.a)?, self.type_expression(&op.b)?);
|
||||||
|
@ -206,8 +206,8 @@ impl Context {
|
||||||
for item in module.items {
|
for item in module.items {
|
||||||
let block = match &item {
|
let block = match &item {
|
||||||
parser::ModuleItem::Comb(comb) => self.type_comb(comb)?,
|
parser::ModuleItem::Comb(comb) => self.type_comb(comb)?,
|
||||||
parser::ModuleItem::Proc(_) => todo!(),
|
parser::ModuleItem::Proc(_) => todo!("proc block"),
|
||||||
parser::ModuleItem::State(_) => todo!(),
|
parser::ModuleItem::State(_) => todo!("state block"),
|
||||||
};
|
};
|
||||||
return Ok(block);
|
return Ok(block);
|
||||||
}
|
}
|
||||||
|
|
|
@ -121,7 +121,7 @@ fn desugar_unop<'a>(op: parser::expression::UnOp<'a>) -> parser::expression::Cal
|
||||||
let a = desugar_expression(op.a);
|
let a = desugar_expression(op.a);
|
||||||
let op_func = match op.kind {
|
let op_func = match op.kind {
|
||||||
parser::expression::UnOpKind::BitNot => "not",
|
parser::expression::UnOpKind::BitNot => "not",
|
||||||
parser::expression::UnOpKind::Not => todo!(),
|
parser::expression::UnOpKind::Not => todo!("bin not"),
|
||||||
};
|
};
|
||||||
parser::expression::Call {
|
parser::expression::Call {
|
||||||
name: op_func.into(),
|
name: op_func.into(),
|
||||||
|
@ -195,8 +195,8 @@ fn lower_expression(
|
||||||
lit.span().fragment().parse().unwrap(),
|
lit.span().fragment().parse().unwrap(),
|
||||||
TODO_WIDTH,
|
TODO_WIDTH,
|
||||||
)),
|
)),
|
||||||
Expression::UnOp(_) => todo!(),
|
Expression::UnOp(_) => todo!("unary op"),
|
||||||
Expression::BinOp(_) => todo!(),
|
Expression::BinOp(_) => todo!("binary op"),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -90,9 +90,9 @@ impl TypingContext {
|
||||||
pub fn pretty_type(&self, w: &mut dyn std::fmt::Write, typ: Type) -> std::fmt::Result {
|
pub fn pretty_type(&self, w: &mut dyn std::fmt::Write, typ: Type) -> std::fmt::Result {
|
||||||
match &self.get(typ).kind {
|
match &self.get(typ).kind {
|
||||||
TypeKind::ElabType(val) => write!(w, "{{{:?}}}", val),
|
TypeKind::ElabType(val) => write!(w, "{{{:?}}}", val),
|
||||||
TypeKind::Logic(_) => todo!(),
|
TypeKind::Logic(_) => todo!("print logic"),
|
||||||
TypeKind::UInt(_) => todo!(),
|
TypeKind::UInt(_) => todo!("print uint"),
|
||||||
TypeKind::Callable => todo!(),
|
TypeKind::Callable => todo!("print callable"),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue