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"); }
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"); }
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); }
public override string calculate(string input) { LogProcessor.filesToProcess = ProgramNode.splitTextToLines(input); //LogProcessor.subQueue = LogProcessor.nodes.Skip(0).ToList(); return(LogProcessor.processNextFile(false, true)); }
public static String loadString(String str) { return(LogProcessor.specialCharacterReplacement(str.Trim())); }