writing a top down parser for a programming language as a project,
pub const Expr = union(ExprKind) {
e_literal: BCValue,
e_negation: Expr,
e_not: Expr,
e_grouping: Expr,
e_ident: []const u8, // owned slice
e_typecast: Typecast,
e_array_literal: []Expr,
e_binary: BinaryExpr,
e_array_index: ArrayIndex,
};
The compiler screams at me for doing this, any fixes? is prefixing these enum members with e_ frowned upon as well?