feat(ast): add species base to template declarations

Added optional species_base field to Template struct enabling
template-species inheritance syntax: `template Name: Species { ... }`.
Updated LALRPOP grammar and all Template construction sites.
This commit is contained in:
2026-02-14 14:12:52 +00:00
parent 0dae430841
commit 9e2cdea6f4
9 changed files with 1920 additions and 1480 deletions

View File

@@ -574,6 +574,7 @@ mod tests {
) -> Template {
Template {
name: name.to_string(),
species_base: None,
fields,
includes: includes.iter().map(|s| s.to_string()).collect(),
strict,