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

@@ -138,6 +138,7 @@ pub struct Character {
#[derive(Debug, Clone, PartialEq)]
pub struct Template {
pub name: String,
pub species_base: Option<String>, // `: Species` - type constraint from species
pub fields: Vec<Field>,
pub strict: bool,
pub includes: Vec<String>,