Skip to main content

Crate paiagram_oudia

Crate paiagram_oudia 

Source
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 Root to get started.
operation
time
timetable

Macros§

pair
structure

Functions§

parse_oudwasm
parse_oud2wasm
parse_oud2_to_ir
Parse a UTF-8 encoded Oud2 string slice into a Root intermediate representation.
parse_oud_to_ir
Parse a Shift-JIS encoded Oud slice into a Root intermediate representation.