parse

Function parse 

Source
pub fn parse(input: &str) -> Result<Tree<'_>>
Expand description

Parse CSS text to a Tree (where it can be further manipulated), capturing detailed error reporting for a moderate performance impact (using nom::error::VerboseError).

ยงExample

let ast = procss::parse("div { .open { color: red; }}").unwrap();