kelicap_ast 1.0.0
kelicap_ast: ^1.0.0 copied to clipboard
Kelicap AST parser and utilities. It parses Kelicap component templates and expressions into a structured tree representation (Abstract Syntax Tree) of JavaScript objects (nodes).
Kelicap AST #
This package contains parsers and utilities for parsing Kelicap templates and expressions into a structured tree (Abstract Syntax Tree) representation of JavaScript objects (nodes). Each node represents an element, attribute, binding, or directive, enabling the Kelicap compiler to understand and validate the code.
Example #
var parser = TemplateParser();
var ast = parser.parse(r'<p>Hello {{ name }}</p>');