Skip to content

Node Structure

Each Node represents an element in the AST tree.

struct Node {
    std::string type;
    std::map<std::string, std::string> props;
    std::vector<Node> children;
};
Field Description
type Element tag name
props Map of key/value attributes
children Nested elements