UNPKG

@tricoteuses/arbre-de-la-loi

Version:

Generate ASTs from the French bills & laws; manipulate & export them to Markdown, etc.

14 lines (13 loc) 471 B
// See Hypertext Abstract Syntax Tree (hast) specification for representing HTML: // https://github.com/syntax-tree/hast export var HastType; (function (HastType) { HastType["Comment"] = "comment"; HastType["Doctype"] = "doctype"; HastType["Element"] = "element"; HastType["Root"] = "root"; HastType["Text"] = "text"; })(HastType || (HastType = {})); export function assertNeverHastNode(node) { throw new Error("Unexpected HAST node: " + node); }