UNPKG

@rshirohara/repixe-parse

Version:
9 lines (7 loc) 286 B
import type { Root } from "@rshirohara/pxast"; import { parse } from "./parser.peg.js"; import { postprocess } from "./postprocessor.js"; import { preprocess } from "./preprocessor.js"; export function fromPixivNovel(doc: string): Root { return postprocess(parse(preprocess(doc))); }