Crate ludtwig_parser[][src]

Re-exports

pub use ast::SyntaxNode;
pub use error::TwigParseError;

Modules

ast

The AST (abstract syntax tree) represents the template syntax in a structured format. It mainly consists of an enum SyntaxNode which has different variants for each syntax.

error

Functions

parse

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.