ProcessLine() public method

public ProcessLine ( string line ) : bool
line string
return bool
示例#1
0
 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);
 }
示例#2
0
文件: csr.cs 项目: orb1t/cs-repl
 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);
 }
示例#3
0
    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);
        }
    }
示例#4
0
 static void ProcessLine(string line)
 {
     interp.ProcessLine(line);
 }