Expand description
The ISO 10303-21 exchange structure, parsed but not yet interpreted.
Part 21 is a syntax, not a schema: #3 = CIRCLE('', #2, 5.0); says an
instance exists with a keyword and arguments, and what a CIRCLE means
is the reader’s business, not the parser’s. This module turns the text
into a map from instance number to typed argument trees and nothing more,
which is what lets the reader say precisely which entities it understood
and which it deliberately walked past.
Structs§
- Exchange
- A parsed exchange file: the data section as a graph, the header kept as raw instances for whoever wants the schema name or the file’s own record of itself.
- Instance
- One instance: usually one keyword with arguments, several for a complex
(multi-leaf) instance like
#1 = (A(...) B(...));.
Enums§
- Arg
- One argument of an entity instance.
Functions§
- parse
- Parse a Part 21 exchange file.