Expand description
A utility crate for parsing the .oud/.oud2 formats used by timetabling tools OuDia and OuDiaSecond. This crate does not support parsing WINDIA files.
This parses .oud/.oud2 strings into human readable intermediate
representation in plain, comprehensible English (as in the ir module).
The crate’s goal is to provide a friendly interface for interacting with those
formats. There crate also provides serialization support from AST to .oud/.oud2
structure.
There’s also optional WebAssembly support. You can directly take the prepackaged artifact and use it in your web editor.
§Getting Started
To get started, simply use parse_oud2_to_ir for .oud2, or parse_oud_to_ir
for .oud.
Re-exports§
pub use ast::SerializeToOud;pub use ast::Structure;pub use time::Time;pub use timetable::ServiceMode;pub use timetable::TimetableEntry;pub use ir::*;
Modules§
- ast
- ir
- Intermediate representation of the .oud/oud2 formats.
Take a look at
Rootto get started. - operation
- time
- timetable
Macros§
Functions§
- parse_
oud wasm - parse_
oud2 wasm - parse_
oud2_ to_ ir - Parse a UTF-8 encoded Oud2 string slice into a
Rootintermediate representation. - parse_
oud_ to_ ir - Parse a Shift-JIS encoded Oud slice into a
Rootintermediate representation.