Module ruststep::ast [−][src]
Expand description
AST (abstract syntax tree) for exchange structure (ISO-10303-21)
Serde data model
Parameter and Record can be deserialize through serde data model.
Parameter | serde data model |
---|---|
Integer | i64 |
Real | f64 |
String | string |
Enumeration | - |
List | seq |
NotProvided | unit |
Omitted | unit |
Typed, Record | map |
RValue | enum |
See the official document of serde data model for detail.
- Parameter::Typed e.g.
A((1.0, 2.0))
and Record e.g.A(1.0, 2.0)
are mapped to “map” in the serde data model - Parameter::RValue is mapped to “enum” in the serde data model.
- FIXME Enumeration is not supported yet.
Structs
DATA
section in STEP file
Entire exchange structure
A struct typed in EXPRESS schema, e.g. A(1.0, 2.0)
Deserializer corresponding to a single-key map like { "A": [1.0, 2.0] }
Enums
Each line of data section
Left hand side value
Primitive value type in STEP data
Right hand side value