UNPKG

@scalenc/nc-format

Version:

Library for handling TRUMPF NC file format.

25 lines 715 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Instruction = void 0; /// Instruction such as a function call with or without arguments. /// E.g. the following code is an instruction with name "TC_LASER_ON" and five arguments: /// ``` /// TC_LASER_ON(9,"SS010MD0-N2S0-30-2",10,100,1) /// ``` class Instruction { name; expressions; constructor( /// The name of the command. name, /// The arguments of the command, or null. expressions) { this.name = name; this.expressions = expressions; } visit(visitor) { visitor.onInstruction(this); } } exports.Instruction = Instruction; //# sourceMappingURL=Instruction.js.map