Etc pattern

This commit is contained in:
2026-06-04 11:01:28 +02:00
parent 7a5e03afd6
commit fc4dd0aa3c
5 changed files with 34 additions and 19 deletions
+2 -1
View File
@@ -33,10 +33,11 @@ pub enum Literal {
#[derive(Debug, Clone, Serialize)]
pub enum Pattern {
NamedTuple(Path, Vec<Box<Pattern>>),
Struct(Path, Vec<(Identifier, Option<Box<Pattern>>)>),
Struct(Path, Vec<Option<(Identifier, Option<Box<Pattern>>)>>),
Tuple(Vec<Box<Pattern>>),
Literal(Literal),
Path(bool, Path),
Etc,
}
#[derive(Debug, Clone, Serialize)]