Skip to main content

ifc_lite_core/parser/
mod.rs

1// This Source Code Form is subject to the terms of the Mozilla Public
2// License, v. 2.0. If a copy of the MPL was not distributed with this
3// file, You can obtain one at https://mozilla.org/MPL/2.0/.
4
5//! STEP/IFC Parser using nom
6//!
7//! Zero-copy tokenization and fast entity scanning.
8//!
9//! Two independent algorithms live here:
10//! - [`tokenizer`]: nom-combinator tokenization ([`Token`], [`parse_entity`]).
11//! - [`scanner`]: a byte-level SIMD fast scanner ([`EntityScanner`]) that does
12//!   its own hand-rolled parsing and never touches [`Token`] or nom.
13
14mod scanner;
15mod tokenizer;
16
17pub use scanner::{entity_count, EntityScanner};
18pub use tokenizer::{parse_entity, Token};