UNPKG

@scalenc/nc-format

Version:

Library for handling TRUMPF NC file format.

33 lines 1.05 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Block = void 0; /// An NC block consisting of multiple statements. class Block { line; blockNumber; labels; statements; comment; constructor( /// The actual number of the line in the NC text. line = 0, /// The number of the block as assigned by the `N` word. /// For a line starting with `N100` the block number is 100. blockNumber, /// List of labels targeting this line. /// E.g. the block `lab1:N100X100` has one label called `lab1`. labels = [], /// The statements the block consists of. statements = [], /// The line comment after the block. /// E.g. the block `N100X100 ; This is a comment` ends with the comment " This is a comment". comment) { this.line = line; this.blockNumber = blockNumber; this.labels = labels; this.statements = statements; this.comment = comment; } } exports.Block = Block; //# sourceMappingURL=Block.js.map