html_query_ast/lib.rs
1mod parser;
2
3pub use crate::parser::{Action, Expression};
4use nom::error::VerboseError;
5use nom::Finish;
6pub use parser::format_error;
7use std::collections::HashMap;
8
9pub fn parse_string(input: &str) -> Result<HashMap<&str, Action>, VerboseError<&str>> {
10 let (_, hashmap) = crate::parser::object(input).finish()?;
11 Ok(hashmap)
12}