This commit is contained in:
agra
2026-02-14 14:03:16 +02:00
parent 025b790411
commit fe7efeadb0
10 changed files with 320 additions and 10 deletions

View File

@@ -148,6 +148,8 @@ pub const BinaryOp = struct {
gte,
and_op,
or_op,
bit_and,
bit_or,
};
};
@@ -227,6 +229,8 @@ pub const EnumDecl = struct {
name: []const u8,
variant_names: []const []const u8,
variant_types: []const ?*Node = &.{}, // null entries = no payload; empty = payload-less enum
is_flags: bool = false,
variant_values: []const ?*Node = &.{}, // explicit value per variant (null = auto), empty = all auto
};
pub const UnionDecl = struct {