UNPKG

@scalenc/nc-format

Version:

Library for handling TRUMPF NC file format.

37 lines 923 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Assignment = void 0; /// Variable assignment statement. /// </summary> /// <remarks> /// These assignments of a variables are equivalent /// ``` /// X10 /// X=10 /// ``` /// A variable can also be assigned to a formula: /// ``` /// X=Y+10 /// ``` class Assignment { variable; fieldExpressions; expression; constructor( /// The variable which is assigned. variable, /// Optional field expressions, such as `X` in `$AA_IW[X]`. /// Note, may be null. fieldExpressions, /// The expression the variable is assigned to. expression) { this.variable = variable; this.fieldExpressions = fieldExpressions; this.expression = expression; } visit(visitor) { visitor.onAssignment(this); } } exports.Assignment = Assignment; //# sourceMappingURL=Assignment.js.map