Skip to main content

Module types

Module types 

Source
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.

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