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