1#![forbid(unsafe_code)]
9
10mod diagnostic;
11pub mod escape;
13pub mod express;
15mod header;
16pub mod lexer;
18mod model;
19mod parallel;
20mod parser;
21mod partition;
22pub mod recovery;
24mod references;
25mod scan;
26pub mod schema;
27pub mod writer;
29
30pub use diagnostic::{Source, SourceLocation, Span, Spanned, StepError};
31pub use header::is_step_file;
32pub use model::{
33 DataRecord, DataSection, Exchange, HeaderRecord, HeaderSection, Instance, InstanceId,
34 Parameter, Record, StandardHeader, Str,
35};
36pub use parallel::parse_parallel_with;
37pub use parser::{
38 parse, parse_events, parse_events_borrowed, parse_events_with, parse_with, Event, EventSink,
39};
40pub use partition::{data_record_spans, partition_data_records, Partition};
41pub use recovery::{Diagnostic, DiagnosticKind, OnMalformed, ParseOptions, ParseOutcome, Severity};
42pub use scan::{
43 decode_record, decode_record_borrowed, decode_record_borrowed_with, decode_record_with, scan,
44 Records, Scan, ScannedRecord,
45};
46pub use schema::SchemaGraph;
47pub use writer::{write, write_parameter, write_to_string};
48
49pub const MAX_PARAMETER_NESTING: usize = 128;