Subsection and Sym are structurally similar. Each has a kind and data field. Sym also has a parse() method, which returns a SymData enum that covers the logical cases enumerated by the constants in SymKind. It'd be nice to have a corresponding Subsection::parse() method, which would return a SubsectionData enum for easy matching.
SubsectionandSymare structurally similar. Each has akindanddatafield.Symalso has aparse()method, which returns aSymDataenum that covers the logical cases enumerated by the constants inSymKind. It'd be nice to have a correspondingSubsection::parse()method, which would return aSubsectionDataenum for easy matching.