-
-
Notifications
You must be signed in to change notification settings - Fork 2
Parser: implement pstring (Pascal string) type #43
Copy link
Copy link
Labels
enhancementNew feature or requestNew feature or requestevaluatorRule evaluation engine and logicRule evaluation engine and logicparserMagic file parsing components and grammarMagic file parsing components and grammarpriority:lowNice to have, can deferNice to have, can defer
Milestone
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestevaluatorRule evaluation engine and logicRule evaluation engine and logicparserMagic file parsing components and grammarMagic file parsing components and grammarpriority:lowNice to have, can deferNice to have, can defer
Type
Fields
Give feedbackNo fields configured for Feature.
Summary
Implement the
pstringtype for Pascal-style length-prefixed strings.Context
The
pstringtype reads a length byte followed by that many bytes of string data. Some binary formats use this encoding for embedded strings.Current state: Not implemented.
Acceptance Criteria
TypeKindextended withPStringvariantpstringtype specifierImpact
LOW - Less commonly used than other string types, but needed for full format compatibility.
Files to Modify
src/parser/ast.rs- ExtendTypeKindenumsrc/parser/grammar.rs- Parse pstring specifiersrc/evaluator/types.rs- Implementread_pstring()References