1 2 3 4 5 6 7 8 9 10 11 12
pub mod ast; pub mod interpreter; pub mod lexer; pub mod parser; /// Parse a general search string (GSS) to an AST pub fn parse( text: &str, ) -> Result<ast::Search, (Option<(lexer::Token, lexer::Span)>, &'static str)> { let lexer = lexer::Lexer::new(text); parser::parse(lexer) }