/// <summary> /// Create a new interpeter with a given set of files to run initially, a given environment, and given streams.. /// </summary> /// <param name="loadStandardMacros">Load standard macros and other primitives.</param> /// <param name="primEnvironment">Environment containing the primitives. If null, create one.</param> /// <param name="files">The files to read.</param> /// <param name="reader">The input reader.</param> /// <param name="writer">The output writer.</param> /// <returns>A scheme interpreter.</returns> public static IInterpreter New( bool loadStandardMacros, IPrimitiveEnvironment primEnvironment, IEnumerable<string> files, TextReader reader, TextWriter writer) { return new Interpreter(loadStandardMacros, primEnvironment, files, reader, writer); }
/// <summary> /// Initializes a new instance of the Interpreter class. /// Create a new interpeter with a given set of files to run initially, a given environment, and given streams.. /// </summary> /// <param name="loadStandardMacros">Load standard macros and other primitives.</param> /// <param name="primEnvironment">Environment containing the primitives. If null, create one.</param> /// <param name="files">The files to read.</param> /// <param name="reader">The input reader.</param> /// <param name="writer">The output writer.</param> /// <returns>A scheme interpreter.</returns> private Interpreter( bool loadStandardMacros, IPrimitiveEnvironment primEnvironment, IEnumerable<string> files, TextReader reader, TextWriter writer) : this(loadStandardMacros, primEnvironment as PrimitiveEnvironment, files, reader, writer) { }
/// <summary> /// Create a new interpeter with a given set of files to run initially, a given environment, and given streams.. /// </summary> /// <param name="primEnvironment">Environment containing the primitives. If null, create one.</param> /// <returns>A scheme interpreter.</returns> public static IInterpreter New(IPrimitiveEnvironment primEnvironment) { return new Interpreter(true, primEnvironment, null, null, null); }