Add Local to AST
This commit is contained in:
parent
528545f71d
commit
81a27e2a07
|
|
@ -10,6 +10,10 @@ pub enum Statement {
|
|||
callee: Ident,
|
||||
args: Vec<Expression>,
|
||||
},
|
||||
Local {
|
||||
name: Ident,
|
||||
init: Option<Box<Expression>>,
|
||||
},
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
|
|
|
|||
|
|
@ -141,6 +141,7 @@ impl Exec for Statement {
|
|||
}
|
||||
.eval(scope);
|
||||
}
|
||||
Statement::Local { .. } => todo!(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user