public KntSEngine(IInOutDevice inOutDevice, Library functionLibrary, bool visibleInOutDevice = true) { _inOutDevice = inOutDevice; _functionLibrary = functionLibrary; _symbolTable = new Dictionary <string, object>(); _visibleInOutDevice = visibleInOutDevice; }
internal CodeRun(IInOutDevice inOutputDevice, Library library, Dictionary <string, object> vars = null) { this.inOutDevice = inOutputDevice; library.InOutDevice = this.inOutDevice; _defaultFunctionLibrary = library; if (vars == null) { symbolTable = new Dictionary <string, object>(); } else { symbolTable = vars; } // Add here system variables CodeSpecialStoreObject("_KNTERRORTRAP", false); CodeSpecialStoreObject("_KNTERRORCODE", 0); CodeSpecialStoreObject("_KNTERRORDESCRIPTION", ""); }
public KntSEngine(IInOutDevice inOutDevice) : this(inOutDevice, new Library(), true) { }