UNPKG

@scalenc/nc-format

Version:

Library for handling TRUMPF NC file format.

54 lines 1.55 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Declaration = exports.VariableType = void 0; var VariableType; (function (VariableType) { /// VariableType[VariableType["INT"] = 0] = "INT"; /// VariableType[VariableType["REAL"] = 1] = "REAL"; /// VariableType[VariableType["BOOL"] = 2] = "BOOL"; /// VariableType[VariableType["CHAR"] = 3] = "CHAR"; /// VariableType[VariableType["STRING"] = 4] = "STRING"; /// VariableType[VariableType["AXIS"] = 5] = "AXIS"; /// VariableType[VariableType["FRAME"] = 6] = "FRAME"; })(VariableType = exports.VariableType || (exports.VariableType = {})); /// A declaration of a variable. class Declaration { type; stringLength; unit; lowerLimit; upperLimit; variables; constructor( /// The type of the variable. type, /// The maximum length of the variable if being of type <see cref="TeVariableType.STRING" />. stringLength, /// The unit of the variable. unit, /// The optional lower limit. lowerLimit, /// The optional upper limit. upperLimit, /// A list of declared variables. variables = []) { this.type = type; this.stringLength = stringLength; this.unit = unit; this.lowerLimit = lowerLimit; this.upperLimit = upperLimit; this.variables = variables; } visit(visitor) { visitor.onDeclaration(this); } } exports.Declaration = Declaration; //# sourceMappingURL=Declaration.js.map