forked from koniifer/ableos
f
This commit is contained in:
parent
b542b003f6
commit
f3e34cd854
|
@ -3135,9 +3135,9 @@ impl Codegen {
|
|||
ast.pos(),
|
||||
format_args!(
|
||||
"compiler does not (yet) know how to handle ({hint}):\n\
|
||||
{ast:}\n\
|
||||
info for weak people:\n\
|
||||
{ast:#?}"
|
||||
{ast:}\n\
|
||||
info for weak people:\n\
|
||||
{ast:#?}"
|
||||
),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -989,7 +989,13 @@ impl<'a> std::fmt::Display for Expr<'a> {
|
|||
|
||||
display_branch(f, left)?;
|
||||
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