use crate::lexer::Ty; #[derive(Clone, Debug)] pub enum Type { Builtin(Ty), Struct(StructType), Pointer(Box), } #[derive(Clone, Debug)] pub struct StructType { pub name: String, pub fields: Vec, } #[derive(Clone, Debug)] pub struct Field { pub name: String, pub ty: Type, }