base_d/encoders/algorithms/schema/parsers/mod.rs
1pub mod json;
2#[allow(dead_code)]
3pub mod markdown;
4pub mod markdown_doc;
5
6use crate::encoders::algorithms::schema::types::IntermediateRepresentation;
7
8/// Trait for parsing input formats into intermediate representation
9pub trait InputParser {
10 type Error;
11
12 /// Parse input string into intermediate representation
13 fn parse(input: &str) -> Result<IntermediateRepresentation, Self::Error>;
14}
15
16pub use json::JsonParser;
17pub use markdown_doc::MarkdownDocParser;