use error::TrixyError; use crate::lexing::TokenStream; use self::command_spec::checked::CommandSpec; mod command_spec; pub mod error; pub mod lexing; pub mod parsing; pub fn parse_trixy_lang(input: &str) -> Result> { let input_tokens = TokenStream::lex(input) .map_err(|err| Box::new(err.into()))? .parse() .map_err(Into::::into)?; Ok(input_tokens) }