Stacking enums for the parser AST structure

can a nested enum with 3 levels of nesting can be considered a design flaw or is this more common than my imagination allows?

What I'm thinking of is splitting the parser tokens into a compiled core branch and a user extendable branch. The core branch has variants for container nodes and leaf nodes. Each of those variants has variants for every core syntax element. The user extendable variant is a placeholder for now.

Sign in to participate in the conversation

Linux Geeks doing what Linux Geeks do..