@taml/parser
Version:
Parser for TAML (Terminal ANSI Markup Language) that generates AST nodes
11 lines • 983 B
TypeScript
/**
* TAML Parser - Parse TAML (Terminal ANSI Markup Language) source text into AST
*
* This package provides a complete parser for TAML that converts source text
* into a well-typed Abstract Syntax Tree (AST) with comprehensive error handling.
*/
export { TamlParser, parseTaml, parseTamlSafe, validateTaml, type ParseOptions, } from "./parser.js";
export { TamlValidator, validateTamlTokens, validateTagName, validateNesting, validateTagClosure, type ValidationResult, } from "./validator.js";
export { TamlTokenizer, tokenize, isOpenTagToken, isCloseTagToken, isTextToken, isEofToken, type TamlToken, type OpenTagToken, type CloseTagToken, type TextToken, type EofToken, type TokenType, type Token, } from "./tokenizer.js";
export { TamlParseError, InvalidTagError, UnclosedTagError, MismatchedTagError, MalformedTagError, UnexpectedEndOfInputError, UnexpectedCharacterError, calculatePosition, createErrorAtPosition, } from "./errors.js";
//# sourceMappingURL=index.d.ts.map