Add desugar command and desugar programs

This commit is contained in:
Joscha 2022-11-21 09:32:07 +01:00
parent 6eee1ba930
commit 8b21acac9e
6 changed files with 106 additions and 12 deletions

View file

@ -30,6 +30,15 @@ impl HasSpan for Space {
}
}
impl Space {
pub fn empty(span: Span) -> Self {
Self {
lines: vec![],
span,
}
}
}
#[derive(Clone)]
pub struct Ident {
pub name: String,