Expand description
Type keyword parsing for magic file types
This module handles parsing and classification of magic file type keywords
(byte, short, long, quad, string, etc.) into their corresponding TypeKind
representations. It extracts the type keyword recognition from the grammar
module to keep type-specific logic cohesive and manageable as new types are
added.
Structs§
- Unknown
Type Keyword - Error returned by
type_keyword_to_kindwhen the supplied keyword is not a recognized magic type keyword.
Functions§
- parse_
type_ keyword - Parse a type keyword from magic file input
- type_
keyword_ to_ kind - Convert a type keyword string to its corresponding
TypeKind