Expand description
Generic ISO 10303 STEP Part 21 and EXPRESS syntax infrastructure.
The crate has no domain-schema dependency. It tokenizes bytes with spans, decodes physical-file strings, parses records into generic parameters, writes them back, partitions complete records, and offers a structural, explicitly partial EXPRESS declaration extractor.
Re-exports§
pub use recovery::Diagnostic;pub use recovery::OnMalformed;pub use recovery::ParseOptions;pub use recovery::ParseOutcome;pub use recovery::Severity;pub use writer::write;pub use writer::write_parameter;pub use writer::write_to_string;
Modules§
- escape
- STEP string escape codec. STEP string-literal escape decoding and encoding.
- express
- Structural, explicitly partial EXPRESS declaration extraction. Explicitly structural, partial EXPRESS declaration extraction.
- lexer
- Physical-file tokenizer. Byte-level tokenizer for STEP physical files.
- recovery
- Malformed-record recovery policy and non-fatal diagnostics. Opt-in malformed-record recovery policy and non-fatal diagnostics.
- writer
- Semantic exchange writer. Semantic exchange writer.
Structs§
- Data
Record - A simple or complex
#id=...;instance inDATA;. - Data
Section - The generic
DATA; ... ENDSEC;section. - Exchange
- A complete ISO 10303-21 exchange structure.
- Header
Record - A record in
HEADER;. - Header
Section - The generic
HEADER; ... ENDSEC;section. - Instance
Id - An arbitrary-precision instance identifier as written by
#42. - Partition
- A half-open byte range containing one or more complete data records.
- Record
- One named parameter record within a DATA instance.
- Source
- Source text used to resolve byte spans to human-readable locations.
- Source
Location - A source span resolved to a display location.
- Span
- A half-open byte range in the original source.
- Spanned
- A value paired with its source span.
- Standard
Header - Standard header fields projected from raw header records.
- Step
Error - Failure while tokenizing or semantically parsing a physical file.
Enums§
Constants§
- MAX_
PARAMETER_ NESTING - Maximum nesting accepted for lists and typed parameters.
Traits§
- Event
Sink - Consumer for parse events.
Functions§
- data_
record_ spans - Locates complete data records.
- is_
step_ file - Returns whether bytes begin with the ISO 10303-21 marker.
- parse
- Parses a physical file into an owned generic exchange structure.
- parse_
events - Parses a physical file and sends semantic records to
sink. - parse_
events_ with - Streams semantic records under explicit
ParseOptions, returning the non-fatal diagnostics collected on the way. - parse_
with - Parses a physical file under explicit
ParseOptions. - partition_
data_ records - Splits data records into at most
partition_countbalanced groups.