feat: add core XBRL parser implementation

- High-performance parser with zero-copy design
- SIMD optimizations for text processing
- Memory-mapped file support
- SEC EDGAR validation rules
- Linkbase and schema support
- Custom memory allocator with mimalloc
This commit is contained in:
Stefano Amorelli
2025-08-16 17:27:40 +03:00
parent 258274cb42
commit ed05da5ed4
11 changed files with 3096 additions and 0 deletions

21
src/instance.rs Normal file
View File

@@ -0,0 +1,21 @@
use crate::model::Document;
use crate::Result;
pub struct InstanceValidator {
strict: bool,
}
impl InstanceValidator {
pub fn new() -> Self {
Self { strict: false }
}
pub fn with_strict(mut self, strict: bool) -> Self {
self.strict = strict;
self
}
pub fn validate(&self, _document: &Document) -> Result<()> {
Ok(())
}
}