private Process CreateParseProcess([NotNull] string fileToParse)
{
string arguments = this.ParserPath + " parse ";
fileToParse = fileToParse.StartsWith("\"") ? fileToParse
: "\"" + fileToParse + "\"";
arguments += fileToParse;
var processStartInfo = new ProcessStartInfo() {
FileName = "php",
Arguments = arguments,
UseShellExecute = false,
RedirectStandardOutput = true,
CreateNoWindow = true
};
var process = new Process() {
StartInfo = processStartInfo
};
return process;
}