cl-parser: Dedicated parsing logic for patterns!
This commit is contained in:
@@ -586,6 +586,7 @@ pub struct MatchArm(pub Pattern, pub Expr);
|
||||
#[derive(Clone, Debug, PartialEq, Eq, Hash)]
|
||||
pub enum Pattern {
|
||||
Name(Sym),
|
||||
Path(Path),
|
||||
Literal(Literal),
|
||||
Rest(Option<Box<Pattern>>),
|
||||
Ref(Mutability, Box<Pattern>),
|
||||
|
||||
Reference in New Issue
Block a user