mirror of
https://github.com/stefanoamorelli/crabrl.git
synced 2026-04-18 23:30:45 +00:00
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:
21
src/instance.rs
Normal file
21
src/instance.rs
Normal 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(())
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user