1
0

add initial marp implementation with sample content and build configuration

This commit is contained in:
2025-09-13 18:13:22 +02:00
parent dcacc9b409
commit e5f219507f
10319 changed files with 1402023 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
import { SemanticType, SemanticRole } from './semantic_meaning.js';
import { SemanticNode } from './semantic_node.js';
import { SemanticTree } from './semantic_tree.js';
export type Sexp = number | Sexp[];
export declare class SemanticSkeleton {
array: Sexp;
parents: {
[key: number]: number[];
};
levelsMap: {
[key: number]: Sexp[];
};
static fromTree(tree: SemanticTree): SemanticSkeleton;
static fromNode(node: SemanticNode): SemanticSkeleton;
static fromString(skel: string): SemanticSkeleton;
static simpleCollapseStructure(strct: Sexp): boolean;
static contentCollapseStructure(strct: Sexp): boolean;
static interleaveIds(first: Sexp, second: Sexp): Sexp;
static collapsedLeafs(...args: Sexp[]): number[];
static fromStructure(mml: Element, tree: SemanticTree): SemanticSkeleton;
static combineContentChildren<T>(type: SemanticType, _role: SemanticRole, content: T[], children: T[]): T[];
private static makeSexp_;
private static fromString_;
private static fromNode_;
private static tree_;
private static addAria;
private static addOwns_;
private static realLeafs_;
constructor(skeleton: Sexp);
populate(): void;
toString(): string;
private populate_;
isRoot(id: number): boolean;
directChildren(id: number): number[];
subtreeNodes(id: number): number[];
}