public static void Main(string [] args) { Interpreter.Console = new TextConsole(); Utils.Write(caption+"\n"+prompt); Interpreter interp = new Interpreter(); string defs = args.Length > 0 ? args[0] : interp.DefaultIncludeFile(); interp.ReadIncludeFile(defs); while (interp.ProcessLine(Utils.ReadLine())) Utils.Write(interp.BlockLevel > 0 ? block_prompt : prompt); }
public static void XMain(string [] args) { Interpreter.Console = new TextConsole(); Utils.Write(caption + "\n" + prompt); Interpreter interp = new Interpreter(); string defs = args.Length > 0 ? args[0] : "csi.csi"; interp.ReadIncludeFile(defs); while (interp.ProcessLine(Utils.ReadLine())) { Utils.Write(prompt); } }
static void ProcessLine(string line) { interp.ProcessLine(line); }