public Stream(Scripting.Compiler.Data state_data, string file_name) : this(state_data) { using (System.IO.FileStream fs = new System.IO.FileStream(file_name, System.IO.FileMode.Open, System.IO.FileAccess.Read, System.IO.FileShare.Read)) { InitializeStream(fs); fs.Close(); } }
Stream(Scripting.Compiler.Data state_data) { State = state_data; Scripting.XmlInterface def = state_data.Definition; // _Startup = def.GetScriptType("startup").Opcode; // _Dormant = def.GetScriptType("dormant").Opcode; // _Continuuous = def.GetScriptType("continuous").Opcode; _Static = def.GetScriptType("static").Opcode; _Stub = def.GetScriptType("stub").Opcode; _Unparsed = def.GetValueType("unparsed").Opcode; _SpecialForm = def.GetValueType("special form").Opcode; _FunctionName = def.GetValueType("function name").Opcode; _Passthrough = def.GetValueType("passthrough").Opcode; _Void = def.GetValueType("void").Opcode; PrimitiveParsers = new List <Parser>(def.ValueTypeCount); }
public Stream(Scripting.Compiler.Data state_data, System.IO.Stream base_stream) : this(state_data) { InitializeStream(base_stream); }
Stream(Scripting.Compiler.Data state_data) { State = state_data; Scripting.XmlInterface def = state_data.Definition; // _Startup = def.GetScriptType("startup").Opcode; // _Dormant = def.GetScriptType("dormant").Opcode; // _Continuuous = def.GetScriptType("continuous").Opcode; _Static = def.GetScriptType("static").Opcode; _Stub = def.GetScriptType("stub").Opcode; _Unparsed = def.GetValueType("unparsed").Opcode; _SpecialForm = def.GetValueType("special form").Opcode; _FunctionName = def.GetValueType("function name").Opcode; _Passthrough = def.GetValueType("passthrough").Opcode; _Void = def.GetValueType("void").Opcode; PrimitiveParsers = new List<Parser>(def.ValueTypeCount); }