mirror of
https://github.com/MorizzG/rlox.git
synced 2025-12-06 12:22:42 +00:00
Interpreter finish
This commit is contained in:
parent
719a014977
commit
647a095a05
5 changed files with 29 additions and 21 deletions
|
|
@ -82,7 +82,7 @@ impl Stmt {
|
|||
impl Display for Stmt {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
match self {
|
||||
Stmt::Print { expr } => write!(f, "print {expr};"),
|
||||
Stmt::Print { expr } => write!(f, "(print {expr});"),
|
||||
Stmt::IfStmt {
|
||||
condition,
|
||||
then_branch,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue