feat: Add parsing support for primitive types.

This commit is contained in:
Jooris Hadeler
2026-01-16 21:02:14 +01:00
parent 4edcd1a7b7
commit fbf6726a78
4 changed files with 67 additions and 1 deletions

View File

@@ -64,6 +64,7 @@ pub enum Statement {
Let {
name: Box<str>,
name_span: Span,
type_: Option<Type>,
value: Option<Expression>,
},
@@ -94,3 +95,11 @@ pub enum Statement {
Expr(Expression),
}
#[derive(Debug, PartialEq, Eq)]
pub enum Type {
Integer { size: u8, signed: bool },
Boolean,
Named { name: Box<str>, name_span: Span },
}