ProcessLine() public méthode

public ProcessLine ( string line ) : bool
line string
Résultat bool
Exemple #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);
 }
Exemple #2
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);
 }
Exemple #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);
        }
    }
Exemple #4
0
 static void ProcessLine(string line)
 {
     interp.ProcessLine(line);
 }