pattern grammar and ast

This commit is contained in:
2026-05-07 22:01:12 +02:00
parent cba78c2ac9
commit c51ff01ce8
2 changed files with 14 additions and 1 deletions
+8
View File
@@ -92,6 +92,14 @@ pub enum TopLevelKind {
},
}
#[derive(Debug, Clone, Serialize)]
pub enum Pattern {
Tuple(Path, Vec<Identifier>),
Struct(Path, Vec<Identifier>),
Path(Path),
Id(Identifier),
}
#[derive(Debug, Clone, Serialize)]
pub enum EnumItem {
Named(Identifier),