Merge pull request #40 from elferherrera/parse-error

Parse errors for def, let and alias
This commit is contained in:
JT
2021-09-13 04:58:25 +12:00
committed by GitHub
3 changed files with 112 additions and 44 deletions

View File

@ -48,3 +48,15 @@ impl Block {
}
}
}
impl<T> From<T> for Block
where
T: Iterator<Item = Statement>,
{
fn from(stmts: T) -> Self {
Self {
signature: Box::new(Signature::new("")),
stmts: stmts.collect(),
}
}
}