@scalenc/nc-format
Version:
Library for handling TRUMPF NC file format.
35 lines • 1.48 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Goto = exports.GotoDirection = void 0;
/// The searching direction.
var GotoDirection;
(function (GotoDirection) {
/// <summary>Goto the program start.</summary>
GotoDirection[GotoDirection["START"] = 0] = "START";
/// <summary>Looking for the target from the current position into the backward direction.</summary>
GotoDirection[GotoDirection["BACKWARD"] = 1] = "BACKWARD";
/// <summary>Looking for the target from the current position into the forward direction.</summary>
GotoDirection[GotoDirection["FORWARD"] = 2] = "FORWARD";
/// <summary>Looking for the target from the current position first into the forward then into the backward directions.</summary>
GotoDirection[GotoDirection["SEARCH"] = 3] = "SEARCH";
/// <summary>Looking for the target from the current position into both directions without errors if not found.</summary>
GotoDirection[GotoDirection["SEARCH_WITHOUT_ERROR"] = 4] = "SEARCH_WITHOUT_ERROR";
})(GotoDirection = exports.GotoDirection || (exports.GotoDirection = {}));
/// Goto instruction.
class Goto {
direction;
target;
constructor(
/// The searching direction.
direction,
/// The target where to goto.
target) {
this.direction = direction;
this.target = target;
}
visit(visitor) {
visitor.onGoto(this);
}
}
exports.Goto = Goto;
//# sourceMappingURL=Goto.js.map