efx_core/ast/mod.rs
1pub use crate::ast::error::ParseError;
2pub use crate::ast::nodes::{Attr, Element, Interpolation, Node, Text};
3pub use crate::ast::parser::Parser;
4
5pub mod error;
6mod lexer;
7pub mod nodes;
8pub mod parser;
9mod span_range;
10mod tok;
11
12/// Top-level utility: parse DSL source string into AST
13pub fn parse_str(src: &str) -> PResult<Vec<Node>> {
14 let mut p = Parser::new(src);
15 p.parse_nodes()
16}
17
18pub type PResult<T> = Result<T, ParseError>;