forked from AbleOS/holey-bytes
f
This commit is contained in:
parent
ba73a89171
commit
a1179f3320
|
@ -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