Beispiel #1
0
 public KntSEngine(IInOutDevice inOutDevice, Library functionLibrary, bool visibleInOutDevice = true)
 {
     _inOutDevice        = inOutDevice;
     _functionLibrary    = functionLibrary;
     _symbolTable        = new Dictionary <string, object>();
     _visibleInOutDevice = visibleInOutDevice;
 }
Beispiel #2
0
        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", "");
        }
Beispiel #3
0
 public KntSEngine(IInOutDevice inOutDevice) : this(inOutDevice, new Library(), true)
 {
 }