Example #1
0
 public override string calculate(string input)
 {
     if (LogProcessor.filesToProcess != null && LogProcessor.filesToProcess.Count >= 1)
     {
         String text = LogProcessor.processNextFile(true);
         return(text);
     }
     return("Files Finished Processing");
 }
Example #2
0
        public override string calculate(string input)
        {
            LogProcessor.saveChanges(input);
            if (LogProcessor.filesToProcess.Count >= 1)
            {
                String text = LogProcessor.processNextFile(true);
                return(text);
            }

            return("Files finished processing");
        }
Example #3
0
        public override string calculate(string input)
        {
            //TODO add working directory code
            String program;

            if (programLocation == null || programLocation.Length == 0)
            {
                program = input;
            }
            else
            {
                program = System.IO.File.ReadAllText(programLocation);
            }
            LogProcessor.compileProgram(program, out nodes);

            LogProcessor.process(nodes, false, input);
            return(LogProcessor.output);
        }
Example #4
0
 public override string calculate(string input)
 {
     LogProcessor.filesToProcess = ProgramNode.splitTextToLines(input);
     //LogProcessor.subQueue = LogProcessor.nodes.Skip(0).ToList();
     return(LogProcessor.processNextFile(false, true));
 }
Example #5
0
 public static String loadString(String str)
 {
     return(LogProcessor.specialCharacterReplacement(str.Trim()));
 }