@scalenc/nc-format
Version:
Library for handling TRUMPF NC file format.
22 lines • 587 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Variable = void 0;
/// A variable, such as e.g. `X` or `F` or ...
class Variable {
name;
fieldExpressions;
constructor(
/// The name of the variable.
name,
/// Optional field expressions, such as `X` in `$AA_IW[X]`.
/// Note, may be null.
fieldExpressions) {
this.name = name;
this.fieldExpressions = fieldExpressions;
}
visit(visitor) {
visitor.onVariable(this);
}
}
exports.Variable = Variable;
//# sourceMappingURL=Variable.js.map