Refactor UntypedKind::Parameter to Identifier

The `Parameter` kind in `UntypedKind` was only used for identifiers that
were being declared or referenced. This commit renames it to
`Identifier` and updates all the necessary code to reflect this change.
This simplifies the AST and makes it more consistent.

Additionally, a new macro `repeat` has been added to
`src/ast/system.myc`.
This commit is contained in:
Michael Schimmel
2026-03-09 11:08:30 +01:00
parent cb4507b2da
commit fa23a4c125
12 changed files with 34 additions and 105 deletions
+1 -1
View File
@@ -358,7 +358,7 @@ impl<'a> Parser<'a> {
};
Node {
identity: NodeIdentity::new(token.location),
kind: UntypedKind::Parameter(sym),
kind: UntypedKind::Identifier(sym),
ty: (),
}
}