site/node_modules/speech-rule-engine/js/semantic_tree/semantic_heuristic.js

18 lines
687 B
JavaScript
Raw Permalink Normal View History

2024-10-14 06:09:33 +00:00
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SemanticMultiHeuristic = exports.SemanticTreeHeuristic = exports.SemanticAbstractHeuristic = void 0;
class SemanticAbstractHeuristic {
constructor(name, method, predicate = (_x) => false) {
this.name = name;
this.apply = method;
this.applicable = predicate;
}
}
exports.SemanticAbstractHeuristic = SemanticAbstractHeuristic;
class SemanticTreeHeuristic extends SemanticAbstractHeuristic {
}
exports.SemanticTreeHeuristic = SemanticTreeHeuristic;
class SemanticMultiHeuristic extends SemanticAbstractHeuristic {
}
exports.SemanticMultiHeuristic = SemanticMultiHeuristic;