You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Add enum variant access resolution for zig.zyn grammar
- Add enum_types HashMap to TypedAstBuilder to track enum types and their variants
- Register enum variants in create_enum for later lookup
- In create_field_access, check if object is an enum type name and resolve
variant access to integer literal discriminants
This enables Zig-style enum access syntax like:
const Color = enum { Red, Green, Blue };
return Color.Green; // Returns 1
0 commit comments