diff --git a/src/ast.rs b/src/ast.rs index 01517bb..37e0a15 100644 --- a/src/ast.rs +++ b/src/ast.rs @@ -10,6 +10,10 @@ pub enum Statement { callee: Ident, args: Vec, }, + Local { + name: Ident, + init: Option>, + }, } #[derive(Debug, Clone)] diff --git a/src/run.rs b/src/run.rs index 3914ea4..9061275 100644 --- a/src/run.rs +++ b/src/run.rs @@ -141,6 +141,7 @@ impl Exec for Statement { } .eval(scope); } + Statement::Local { .. } => todo!(), } } }