Add Local to AST

This commit is contained in:
numzero 2025-04-19 11:04:39 +03:00
parent 528545f71d
commit 81a27e2a07
2 changed files with 5 additions and 0 deletions

View File

@ -10,6 +10,10 @@ pub enum Statement {
callee: Ident, callee: Ident,
args: Vec<Expression>, args: Vec<Expression>,
}, },
Local {
name: Ident,
init: Option<Box<Expression>>,
},
} }
#[derive(Debug, Clone)] #[derive(Debug, Clone)]

View File

@ -141,6 +141,7 @@ impl Exec for Statement {
} }
.eval(scope); .eval(scope);
} }
Statement::Local { .. } => todo!(),
} }
} }
} }