1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
#![no_std] #[allow(unused_imports)] #[macro_use] extern crate alloc; extern crate nom; mod parsers; pub mod types; use nom::IResult; use types::OType; /// This is the main frontend parser for Owen's Markup Language. /// /// # Language specification /// /// The language specification for Owen's Markup Language can be found /// [here](https://owml.gitlab.io/owml-website/docs/lang-spec/). /// /// # Using the parser /// /// All documentation for using this parser can be found /// [here](https://owml.gitlab.io/owml-website/docs/parser/). pub fn parse_owml_str(input: &str) -> IResult<&str, OType> { let (input, found_vec) = parsers::owml_parser::get_vec_parser(input)?; Ok((input, OType::ObjectType(found_vec))) }