forked from AbleOS/ableos
f
This commit is contained in:
parent
b542b003f6
commit
f3e34cd854
|
@ -3135,9 +3135,9 @@ impl Codegen {
|
||||||
ast.pos(),
|
ast.pos(),
|
||||||
format_args!(
|
format_args!(
|
||||||
"compiler does not (yet) know how to handle ({hint}):\n\
|
"compiler does not (yet) know how to handle ({hint}):\n\
|
||||||
{ast:}\n\
|
{ast:}\n\
|
||||||
info for weak people:\n\
|
info for weak people:\n\
|
||||||
{ast:#?}"
|
{ast:#?}"
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -989,7 +989,13 @@ impl<'a> std::fmt::Display for Expr<'a> {
|
||||||
|
|
||||||
display_branch(f, left)?;
|
display_branch(f, left)?;
|
||||||
write!(f, " {op} ")?;
|
write!(f, " {op} ")?;
|
||||||
display_branch(f, right)
|
display_branch(f, right)?;
|
||||||
|
|
||||||
|
if matches!(op, TokenKind::Decl | TokenKind::Assign) {
|
||||||
|
write!(f, ";")?;
|
||||||
|
}
|
||||||
|
|
||||||
|
Ok(())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue