Expand description
parse_bytes — STEP source to the raw, untyped entity graph.
This is the syntax layer: it knows Part 21, not the schemas. tokenize
turns the text into tokens; parse and parse_bytes assemble them
into a Graph, which holds each entity as a RawEntity (keyword
plus attributes). The source AP, identified from the FILE_SCHEMA
header, rides along as a SchemaId. read drives this
as its first step; everything here stays public for tools that want the
raw Part 21 file without the schema layer — statistics, linting,
anonymization, and the like.
Re-exports§
pub use entity::Attribute;pub use entity::Error;pub use entity::Graph;pub use entity::ParseWarning;pub use entity::RawEntity;pub use entity::RawEntityPart;pub use lexer::LexError;pub use lexer::LexErrorKind;pub use lexer::Lexer;pub use lexer::Span;pub use lexer::Token;pub use lexer::TokenKind;pub use lexer::tokenize;pub use p21::Parser;pub use p21::parse;pub use p21::parse_bytes;pub use schema::ApFamily;pub use schema::NonEmptyStringList;pub use schema::SchemaId;pub use schema::Stage;