Summary
Implement floating-point type specifiers: float, double, befloat, bedouble, lefloat, ledouble.
Context
Some binary formats store floating-point values (scientific data, image metadata, audio parameters). While less common than integer types, float/double support is needed for full magic file compatibility.
Current state: No floating-point types exist in TypeKind or the parser.
Acceptance Criteria
Impact
MEDIUM - Less commonly used than integer types but needed for full compatibility.
Files to Modify
src/parser/ast.rs - Extend TypeKind enum
src/parser/grammar.rs - Parse float/double specifiers
src/evaluator/types.rs - Implement read_float() and read_double()
References
Summary
Implement floating-point type specifiers:
float,double,befloat,bedouble,lefloat,ledouble.Context
Some binary formats store floating-point values (scientific data, image metadata, audio parameters). While less common than integer types, float/double support is needed for full magic file compatibility.
Current state: No floating-point types exist in
TypeKindor the parser.Acceptance Criteria
TypeKindextended withFloatandDoublevariantsfloat,double,befloat,bedouble,lefloat,ledoubleImpact
MEDIUM - Less commonly used than integer types but needed for full compatibility.
Files to Modify
src/parser/ast.rs- ExtendTypeKindenumsrc/parser/grammar.rs- Parse float/double specifierssrc/evaluator/types.rs- Implementread_float()andread_double()References