UNPKG

@taml/ast

Version:

Abstract Syntax Tree types and utilities for TAML (Terminal ANSI Markup Language)

14 lines 1.33 kB
/** * TAML AST - Abstract Syntax Tree types and utilities for TAML (Terminal ANSI Markup Language) * * This package provides a minimal, well-typed AST representation with core node types, * visitor patterns, and essential traversal utilities for TAML parsing and manipulation. */ export type { TamlTag, NodeType, Position, } from "./types.js"; export { STANDARD_COLORS, BRIGHT_COLORS, BACKGROUND_COLORS, TEXT_STYLES, VALID_TAGS, isValidTag, isStandardColor, isBrightColor, isBackgroundColor, isTextStyle, } from "./types.js"; export type { TamlNode, DocumentNode, ElementNode, TextNode, } from "./nodes.js"; export { isDocumentNode, isElementNode, isTextNode, createDocument, createElement, createText, appendChild, removeChild, replaceChild, cloneNode, getRoot, getAncestors, getDepth, } from "./nodes.js"; export type { Visitor, Transformer, AsyncVisitor, } from "./visitor.js"; export { visit, transform, visitAsync, createTypedVisitor, createCollectorVisitor, createCounterVisitor, } from "./visitor.js"; export { walk, walkAsync, findAll, findFirst, filter, getAllText, getElementsWithTag, getTextNodes, getElementNodes, contains, getCommonAncestor, getSiblings, getPreviousSibling, getNextSibling, isEmpty, countNodes, getMaxDepth, flatten, createDepthMap, } from "./traversal.js"; //# sourceMappingURL=index.d.ts.map