speech-rule-engine
Version:
A standalone speech rule engine for XML structures, based on the original engine from ChromeVox.
13 lines • 433 B
JavaScript
import * as DomUtil from '../common/dom_util.js';
import { SemanticTree } from './semantic_tree.js';
export function xmlTree(mml, options) {
return getTree(mml, options).xml();
}
export function getTree(mml, options) {
return new SemanticTree(mml, options);
}
export function getTreeFromString(expr, options) {
const mml = DomUtil.parseInput(expr);
return getTree(mml, options);
}
//# sourceMappingURL=semantic.js.map