Skip to main content

Crate marque_core

Crate marque_core 

Source
Expand description

marque-core — format-agnostic scanner and parser for IC classification markings.

This crate is WASM-safe: no format dependencies, no I/O, operates on &[u8]. The pipeline entry point is Scanner, which produces Spans that the Parser converts into IsmAttributes.

Core ISM types (Span, IsmAttributes, TokenSet, etc.) are defined in marque-ism and re-exported here for backward compatibility.

Re-exports§

pub use error::CoreError;
pub use parser::Parser;
pub use scanner::Scanner;

Modules§

attrs
Re-exports from marque-ism for backward compatibility.
error
parser
Phase 2/3: token extraction and structural parsing.
scanner
Phase 1: candidate detection — finds potential classification markings in a byte buffer.
span
Re-exports from marque-ism for backward compatibility.

Structs§

IsmAttributes
Canonical in-memory representation of an IC classification marking.
Span
A byte-offset span into the original source buffer. Never owns data; always references the original input.

Enums§

MarkingType
Classification marking candidate type, determined by scanner heuristics.