add initial marp implementation with sample content and build configuration
This commit is contained in:
36
node_modules/speech-rule-engine/js/semantic_tree/semantic_skeleton.d.ts
generated
vendored
Normal file
36
node_modules/speech-rule-engine/js/semantic_tree/semantic_skeleton.d.ts
generated
vendored
Normal 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[];
|
||||
}
|
||||
Reference in New Issue
Block a user