Skip to main content

parse_string

Function parse_string 

Source
pub fn parse_string(source: &str) -> Result<Config, ParseError>
Expand description

Parse nginx configuration from a string

Uses the rowan-based lossless CST parser internally and converts to AST. Returns an error if the source contains syntax errors.