Function ludtwig_parser::parse[][src]

pub fn parse(input: &'_ str) -> Result<SyntaxNode, TwigParseError<&'_ str>>

Parses a template into an AST of the SyntaxNode type. If it fails it will return a TwigParseError which contains a function to generate a human readable error message TwigParseError::pretty_helpful_error_string.